comparison dv.c @ 2370:26560d4fdb1f libavcodec

Memory leak fix patch by (Burkhard Plaum <plaum >at< ipf.uni-stuttgart )dot( de>)
author michael
date Sat, 27 Nov 2004 18:10:06 +0000
parents f8ac68cd4fa8
children 18b8b2dcc037
comparison
equal deleted inserted replaced
2369:ce47b1d51cb1 2370:26560d4fdb1f
142 } 142 }
143 143
144 /* NOTE: as a trick, we use the fact the no codes are unused 144 /* NOTE: as a trick, we use the fact the no codes are unused
145 to accelerate the parsing of partial codes */ 145 to accelerate the parsing of partial codes */
146 init_vlc(&dv_vlc, TEX_VLC_BITS, j, 146 init_vlc(&dv_vlc, TEX_VLC_BITS, j,
147 new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2); 147 new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2, 0);
148 148
149 dv_rl_vlc = av_malloc(dv_vlc.table_size * sizeof(RL_VLC_ELEM)); 149 dv_rl_vlc = av_malloc(dv_vlc.table_size * sizeof(RL_VLC_ELEM));
150 if (!dv_rl_vlc) { 150 if (!dv_rl_vlc) {
151 av_free(dv_anchor); 151 av_free(dv_anchor);
152 av_free(dv_vlc_map); 152 av_free(dv_vlc_map);