You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-06 06:27:36 +02:00
mov: free the dv demux context with avformat_free_context()
This commit is contained in:
@ -3040,12 +3040,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);
|
||||||
|
Reference in New Issue
Block a user