projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265fe9a
)
src/io/source_avcodec.c: make sure libavutil > 52 before checking avFrame->channels...
author
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 15:21:46 +0000
(17:21 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 15:21:46 +0000
(17:21 +0200)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
7082bc2
..
2186858
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-425,12
+425,14
@@
void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s, uint_t * read_sam
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,
s->input_channels, s->path);
goto beach;
}
+#endif
#ifdef HAVE_AVRESAMPLE
in_linesize = 0;