Browse Source

Merge commit 'edb1af7c466ebb28bfdb0c076e498e527b43d24f'

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

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
73b1283012
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      libavformat/mov.c

+ 2
- 6
libavformat/mov.c View File

@@ -3477,12 +3477,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);


Loading…
Cancel
Save