From 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 Mon Sep 17 00:00:00 2001 From: Burkhard Plaum Date: Sat, 27 Nov 2004 18:10:06 +0000 Subject: Memory leak fix patch by (Burkhard Plaum at< ipf.uni-stuttgart )dot( de>) Originally committed as revision 3717 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmadec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/wmadec.c') diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 01ce89c5ca..cc83f4f823 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -182,7 +182,7 @@ static void init_coef_vlc(VLC *vlc, const uint16_t *p; int i, l, j, level; - init_vlc(vlc, 9, n, table_bits, 1, 1, table_codes, 4, 4); + init_vlc(vlc, 9, n, table_bits, 1, 1, table_codes, 4, 4, 0); run_table = av_malloc(n * sizeof(uint16_t)); level_table = av_malloc(n * sizeof(uint16_t)); @@ -493,13 +493,13 @@ static int wma_decode_init(AVCodecContext * avctx) #endif init_vlc(&s->hgain_vlc, 9, sizeof(hgain_huffbits), hgain_huffbits, 1, 1, - hgain_huffcodes, 2, 2); + hgain_huffcodes, 2, 2, 0); } if (s->use_exp_vlc) { init_vlc(&s->exp_vlc, 9, sizeof(scale_huffbits), scale_huffbits, 1, 1, - scale_huffcodes, 4, 4); + scale_huffcodes, 4, 4, 0); } else { wma_lsp_to_curve_init(s, s->frame_len); } -- cgit v1.2.3