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>
pull/37/head
Michael Niedermayer 12 years ago
commit ef4fcb30c4
  1. 3
      libavformat/movenc.c

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

Loading…
Cancel
Save