[FFmpeg-cvslog] r22024 - trunk/libavcodec/vc1dec.c

kostya subversion
Wed Feb 24 14:11:38 CET 2010


Author: kostya
Date: Wed Feb 24 14:11:38 2010
New Revision: 22024

Log:
ff_msmpeg4_decode_init() calls ff_h263_decode_init() which calls
MPV_common_init(), so calling both is redundant and leads to memory
leaks in WMV3/VC-1 decoder. Thus use only the first function in
WMV3/VC-1 decoder initialization.

Modified:
   trunk/libavcodec/vc1dec.c

Modified: trunk/libavcodec/vc1dec.c
==============================================================================
--- trunk/libavcodec/vc1dec.c	Wed Feb 24 12:51:42 2010	(r22023)
+++ trunk/libavcodec/vc1dec.c	Wed Feb 24 14:11:38 2010	(r22024)
@@ -2994,11 +2994,9 @@ static av_cold int vc1_decode_init(AVCod
         avctx->idct_algo=FF_IDCT_WMV2;
     }
 
-    if(ff_h263_decode_init(avctx) < 0)
+    if(ff_msmpeg4_decode_init(avctx) < 0)
         return -1;
     if (vc1_init_common(v) < 0) return -1;
-    // only for ff_msmp4_mb_i_table
-    if (ff_msmpeg4_decode_init(avctx) < 0) return -1;
 
     avctx->coded_width = avctx->width;
     avctx->coded_height = avctx->height;



More information about the ffmpeg-cvslog mailing list