Commit 3559fb97 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

movenc: Check that tracks->enc exists before trying to free extradata


Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 4d122b01
...@@ -3470,7 +3470,8 @@ static int mov_write_trailer(AVFormatContext *s) ...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment