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/h261.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libavcodec/h261.c') diff --git a/libavcodec/h261.c b/libavcodec/h261.c index 87ac6706d6..4286129dff 100644 --- a/libavcodec/h261.c +++ b/libavcodec/h261.c @@ -282,7 +282,7 @@ void ff_h261_encode_init(MpegEncContext *s){ if (!done) { done = 1; - init_rl(&h261_rl_tcoeff); + init_rl(&h261_rl_tcoeff, 1); } s->min_qcoeff= -127; @@ -372,7 +372,7 @@ static VLC h261_mtype_vlc; static VLC h261_mv_vlc; static VLC h261_cbp_vlc; -void init_vlc_rl(RLTable *rl); +void init_vlc_rl(RLTable *rl, int use_static); static void h261_decode_init_vlc(H261Context *h){ static int done = 0; @@ -381,18 +381,18 @@ static void h261_decode_init_vlc(H261Context *h){ done = 1; init_vlc(&h261_mba_vlc, H261_MBA_VLC_BITS, 35, h261_mba_bits, 1, 1, - h261_mba_code, 1, 1); + h261_mba_code, 1, 1, 1); init_vlc(&h261_mtype_vlc, H261_MTYPE_VLC_BITS, 10, h261_mtype_bits, 1, 1, - h261_mtype_code, 1, 1); + h261_mtype_code, 1, 1, 1); init_vlc(&h261_mv_vlc, H261_MV_VLC_BITS, 17, &h261_mv_tab[0][1], 2, 1, - &h261_mv_tab[0][0], 2, 1); + &h261_mv_tab[0][0], 2, 1, 1); init_vlc(&h261_cbp_vlc, H261_CBP_VLC_BITS, 63, &h261_cbp_tab[0][1], 2, 1, - &h261_cbp_tab[0][0], 2, 1); - init_rl(&h261_rl_tcoeff); - init_vlc_rl(&h261_rl_tcoeff); + &h261_cbp_tab[0][0], 2, 1, 1); + init_rl(&h261_rl_tcoeff, 1); + init_vlc_rl(&h261_rl_tcoeff, 1); } } -- cgit v1.2.3