Commit ef4fcb30 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3559fb97'

* commit '3559fb97':
  movenc: Check that tracks->enc exists before trying to free extradata

Conflicts:
	libavformat/movenc.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0bd15938 3559fb97
......@@ -4044,7 +4044,8 @@ static int mov_write_trailer(AVFormatContext *s)
}
if (mov->chapter_track) {
av_freep(&mov->tracks[mov->chapter_track].enc->extradata);
if (mov->tracks[mov->chapter_track].enc)
av_freep(&mov->tracks[mov->chapter_track].enc->extradata);
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