Module: libav Branch: master Commit: 3559fb97c459c88b4f1d0eef80d55933d3b7fabe
Author: Martin Storsjö <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Mon Aug 26 10:56:17 2013 +0300 movenc: Check that tracks->enc exists before trying to free extradata Signed-off-by: Martin Storsjö <[email protected]> --- libavformat/movenc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index dc13a4b..cebdca9 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3470,7 +3470,8 @@ static int mov_write_trailer(AVFormatContext *s) } 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); } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
