# HG changeset patch # User kostya # Date 1267017098 0 # Node ID f64dd8297105935915980676bfe154a425e8070c # Parent fc001a3aa3902806f6c8b3cc511793dd46e8bf61 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. diff -r fc001a3aa390 -r f64dd8297105 vc1dec.c --- a/vc1dec.c Wed Feb 24 11:51:42 2010 +0000 +++ b/vc1dec.c Wed Feb 24 13:11:38 2010 +0000 @@ -2994,11 +2994,9 @@ 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;