Merge commit '3559fb97c459c88b4f1d0eef80d55933d3b7fabe'

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

Conflicts:
	libavformat/movenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-08-27 12:33:39 +02:00
commit ef4fcb30c4
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}