projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a14b616
)
mov: free the dv demux context with avformat_free_context()
author
Anton Khirnov
<anton@khirnov.net>
Thu, 19 Jun 2014 06:56:24 +0000
(08:56 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 9 Jul 2014 13:38:35 +0000
(13:38 +0000)
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
cc2dc87
..
fdf9c8d
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-3040,12
+3040,8
@@
static int mov_read_close(AVFormatContext *s)
}
if (mov->dv_demux) {
- for (i = 0; i < mov->dv_fctx->nb_streams; i++) {
- av_freep(&mov->dv_fctx->streams[i]->codec);
- av_freep(&mov->dv_fctx->streams[i]);
- }
- av_freep(&mov->dv_fctx);
- av_freep(&mov->dv_demux);
+ avformat_free_context(mov->dv_fctx);
+ mov->dv_fctx = NULL;
}
av_freep(&mov->trex_data);