[FFmpeg-cvslog] r14277 - trunk/libavcodec/vc1.c

benoit subversion
Fri Jul 18 09:15:50 CEST 2008


Author: benoit
Date: Fri Jul 18 09:15:50 2008
New Revision: 14277

Log:
Fix a mem leak in vc1_decode_frame().
Patch by Erik Hovland erik hovland org


Modified:
   trunk/libavcodec/vc1.c

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Fri Jul 18 09:15:50 2008
@@ -4005,6 +4005,7 @@ static int vc1_decode_frame(AVCodecConte
             divider = find_next_marker(buf, buf + buf_size);
             if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){
                 av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n");
+                av_free(buf2);
                 return -1;
             }
 




More information about the ffmpeg-cvslog mailing list