ref: 58fe1975c6f954af50d2f03e20077dfdb0d93277
parent: 265fe9a2ca606f8b9ae4a110390f26c139c01ad7
author: Paul Brossier <piem@piem.org>
date: Mon Aug 6 13:21:46 EDT 2018
src/io/source_avcodec.c: make sure libavutil > 52 before checking avFrame->channels (see #137)
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -425,6 +425,7 @@
goto beach;
}
+#if LIBAVUTIL_VERSION_MAJOR > 52
if (avFrame->channels != (sint_t)s->input_channels) {
AUBIO_WRN ("source_avcodec: trying to read from %d channel(s),"
"but configured for %d; is '%s' corrupt?\n", avFrame->channels,
@@ -431,6 +432,7 @@
s->input_channels, s->path);
goto beach;
}
+#endif
#ifdef HAVE_AVRESAMPLE
in_linesize = 0;