projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf7caf
)
src/io/source_avcodec.c: use avcodec_free_context for newer ffmpeg
author
Paul Brossier
<piem@piem.org>
Fri, 17 Mar 2017 17:34:04 +0000
(18:34 +0100)
committer
Paul Brossier
<piem@piem.org>
Fri, 17 Mar 2017 17:34:04 +0000
(18:34 +0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
a17d1a3
..
ede096c
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-564,7
+564,11
@@
uint_t aubio_source_avcodec_close(aubio_source_avcodec_t * s) {
}
s->avr = NULL;
if (s->avCodecCtx != NULL) {
+#ifndef HAVE_AUBIO_LIBAVCODEC_DEPRECATED
+ avcodec_free_context( &s->avCodecCtx );
+#else
avcodec_close ( s->avCodecCtx );
+#endif
}
s->avCodecCtx = NULL;
if (s->avFormatCtx != NULL) {