Commit 73b12830 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'edb1af7c'

* commit 'edb1af7c':
  mov: free the dv demux context with avformat_free_context()
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 81babc43 edb1af7c
...@@ -3477,12 +3477,8 @@ static int mov_read_close(AVFormatContext *s) ...@@ -3477,12 +3477,8 @@ static int mov_read_close(AVFormatContext *s)
} }
if (mov->dv_demux) { if (mov->dv_demux) {
for (i = 0; i < mov->dv_fctx->nb_streams; i++) { avformat_free_context(mov->dv_fctx);
av_freep(&mov->dv_fctx->streams[i]->codec); mov->dv_fctx = NULL;
av_freep(&mov->dv_fctx->streams[i]);
}
av_freep(&mov->dv_fctx);
av_freep(&mov->dv_demux);
} }
av_freep(&mov->trex_data); av_freep(&mov->trex_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment