[FFmpeg-cvslog] r25360 - trunk/libavformat/mov.c
mstorsjo
subversion
Tue Oct 5 23:36:30 CEST 2010
Author: mstorsjo
Date: Tue Oct 5 23:36:30 2010
New Revision: 25360
Log:
movdec: Free the previous extradata
If multiple stsd atoms are parsed for the same stream, the old
extradata would be leaked.
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c Tue Oct 5 23:35:44 2010 (r25359)
+++ trunk/libavformat/mov.c Tue Oct 5 23:36:30 2010 (r25360)
@@ -528,6 +528,7 @@ int ff_mov_read_esds(AVFormatContext *fc
dprintf(fc, "Specific MPEG4 header len=%d\n", len);
if((uint64_t)len > (1<<30))
return -1;
+ av_free(st->codec->extradata);
st->codec->extradata = av_mallocz(len + FF_INPUT_BUFFER_PADDING_SIZE);
if (!st->codec->extradata)
return AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list