[FFmpeg-cvslog] r24279 - trunk/libavformat/avidec.c

jai_menon subversion
Sat Jul 17 07:08:01 CEST 2010


Author: jai_menon
Date: Sat Jul 17 07:08:01 2010
New Revision: 24279

Log:
avidec : Free codec context before initializing the chained DV demuxer.

Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	Sat Jul 17 01:31:30 2010	(r24278)
+++ trunk/libavformat/avidec.c	Sat Jul 17 07:08:01 2010	(r24279)
@@ -397,6 +397,7 @@ static int avi_read_header(AVFormatConte
 
                 ast = s->streams[0]->priv_data;
                 av_freep(&s->streams[0]->codec->extradata);
+                av_freep(&s->streams[0]->codec);
                 av_freep(&s->streams[0]);
                 s->nb_streams = 0;
                 if (CONFIG_DV_DEMUXER) {



More information about the ffmpeg-cvslog mailing list