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,7 +3470,8 @@ static int mov_write_trailer(AVFormatContext *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mov->chapter_track) {
|
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);
|
av_freep(&mov->tracks[mov->chapter_track].enc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user