comparison h264.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 b76a4977447a
children 3c2abf00b7c1
comparison
equal deleted inserted replaced
2369:ce47b1d51cb1 2370:26560d4fdb1f
2089 int i; 2089 int i;
2090 done = 1; 2090 done = 1;
2091 2091
2092 init_vlc(&chroma_dc_coeff_token_vlc, CHROMA_DC_COEFF_TOKEN_VLC_BITS, 4*5, 2092 init_vlc(&chroma_dc_coeff_token_vlc, CHROMA_DC_COEFF_TOKEN_VLC_BITS, 4*5,
2093 &chroma_dc_coeff_token_len [0], 1, 1, 2093 &chroma_dc_coeff_token_len [0], 1, 1,
2094 &chroma_dc_coeff_token_bits[0], 1, 1); 2094 &chroma_dc_coeff_token_bits[0], 1, 1, 1);
2095 2095
2096 for(i=0; i<4; i++){ 2096 for(i=0; i<4; i++){
2097 init_vlc(&coeff_token_vlc[i], COEFF_TOKEN_VLC_BITS, 4*17, 2097 init_vlc(&coeff_token_vlc[i], COEFF_TOKEN_VLC_BITS, 4*17,
2098 &coeff_token_len [i][0], 1, 1, 2098 &coeff_token_len [i][0], 1, 1,
2099 &coeff_token_bits[i][0], 1, 1); 2099 &coeff_token_bits[i][0], 1, 1, 1);
2100 } 2100 }
2101 2101
2102 for(i=0; i<3; i++){ 2102 for(i=0; i<3; i++){
2103 init_vlc(&chroma_dc_total_zeros_vlc[i], CHROMA_DC_TOTAL_ZEROS_VLC_BITS, 4, 2103 init_vlc(&chroma_dc_total_zeros_vlc[i], CHROMA_DC_TOTAL_ZEROS_VLC_BITS, 4,
2104 &chroma_dc_total_zeros_len [i][0], 1, 1, 2104 &chroma_dc_total_zeros_len [i][0], 1, 1,
2105 &chroma_dc_total_zeros_bits[i][0], 1, 1); 2105 &chroma_dc_total_zeros_bits[i][0], 1, 1, 1);
2106 } 2106 }
2107 for(i=0; i<15; i++){ 2107 for(i=0; i<15; i++){
2108 init_vlc(&total_zeros_vlc[i], TOTAL_ZEROS_VLC_BITS, 16, 2108 init_vlc(&total_zeros_vlc[i], TOTAL_ZEROS_VLC_BITS, 16,
2109 &total_zeros_len [i][0], 1, 1, 2109 &total_zeros_len [i][0], 1, 1,
2110 &total_zeros_bits[i][0], 1, 1); 2110 &total_zeros_bits[i][0], 1, 1, 1);
2111 } 2111 }
2112 2112
2113 for(i=0; i<6; i++){ 2113 for(i=0; i<6; i++){
2114 init_vlc(&run_vlc[i], RUN_VLC_BITS, 7, 2114 init_vlc(&run_vlc[i], RUN_VLC_BITS, 7,
2115 &run_len [i][0], 1, 1, 2115 &run_len [i][0], 1, 1,
2116 &run_bits[i][0], 1, 1); 2116 &run_bits[i][0], 1, 1, 1);
2117 } 2117 }
2118 init_vlc(&run7_vlc, RUN7_VLC_BITS, 16, 2118 init_vlc(&run7_vlc, RUN7_VLC_BITS, 16,
2119 &run_len [6][0], 1, 1, 2119 &run_len [6][0], 1, 1,
2120 &run_bits[6][0], 1, 1); 2120 &run_bits[6][0], 1, 1, 1);
2121 } 2121 }
2122 } 2122 }
2123 2123
2124 /** 2124 /**
2125 * Sets the intra prediction function pointers. 2125 * Sets the intra prediction function pointers.