mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +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,7 +3470,8 @@ static int mov_write_trailer(AVFormatContext *s)
|
||||
}
|
||||
|
||||
if (mov->chapter_track) {
|
||||
av_free(mov->tracks[mov->chapter_track].enc->extradata);
|
||||
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