diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-06-19 10:56:24 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-07-09 17:38:35 +0400 |
commit | edb1af7c466ebb28bfdb0c076e498e527b43d24f (patch) | |
tree | 6f689cc893d115f64c66a9da0b0141bf66bdcbc2 /libavformat/mov.c | |
parent | a14b61658c3302081ea5da3ea65b7d9f7b4fb2eb (diff) |
mov: free the dv demux context with avformat_free_context()
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index cc2dc87f33..fdf9c8dc29 100644 --- 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); |