projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b210a9
)
src/io/source_avcodec.c: call avformat_free_context after avformat_close_input
author
Paul Brossier
<piem@piem.org>
Wed, 30 Nov 2016 16:17:24 +0000
(17:17 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 30 Nov 2016 16:17:24 +0000
(17:17 +0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
286655e
..
00bf3da
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-502,9
+502,10
@@
uint_t aubio_source_avcodec_close(aubio_source_avcodec_t * s) {
}
s->avCodecCtx = NULL;
if (s->avFormatCtx != NULL) {
- avformat_close_input ( &(s->avFormatCtx) );
+ avformat_close_input(&s->avFormatCtx);
+ avformat_free_context(s->avFormatCtx);
+ s->avFormatCtx = NULL;
}
- s->avFormatCtx = NULL;
return AUBIO_OK;
}