You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
movenc: Check that tracks->enc exists before trying to free extradata
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -3470,6 +3470,7 @@ static int mov_write_trailer(AVFormatContext *s)
|
||||
}
|
||||
|
||||
if (mov->chapter_track) {
|
||||
if (mov->tracks[mov->chapter_track].enc)
|
||||
av_free(mov->tracks[mov->chapter_track].enc->extradata);
|
||||
av_freep(&mov->tracks[mov->chapter_track].enc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user