1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

Merge commit 'edb1af7c466ebb28bfdb0c076e498e527b43d24f'

* commit 'edb1af7c466ebb28bfdb0c076e498e527b43d24f':
  mov: free the dv demux context with avformat_free_context()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-07-09 23:18:50 +02:00

View File

@@ -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);