comparison mpc8.c @ 6350:8e63d869a904 libavcodec

typo fix: inited --> initialized
author diego
date Wed, 13 Feb 2008 09:26:10 +0000
parents dfdff1ca78a7
children 48759bfbd073
comparison
equal deleted inserted replaced
6349:aed237dd11d8 6350:8e63d869a904
95 static int mpc8_decode_init(AVCodecContext * avctx) 95 static int mpc8_decode_init(AVCodecContext * avctx)
96 { 96 {
97 int i; 97 int i;
98 MPCContext *c = avctx->priv_data; 98 MPCContext *c = avctx->priv_data;
99 GetBitContext gb; 99 GetBitContext gb;
100 static int vlc_inited = 0; 100 static int vlc_initialized = 0;
101 101
102 if(avctx->extradata_size < 2){ 102 if(avctx->extradata_size < 2){
103 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size); 103 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
104 return -1; 104 return -1;
105 } 105 }
115 c->maxbands = get_bits(&gb, 5) + 1; 115 c->maxbands = get_bits(&gb, 5) + 1;
116 skip_bits(&gb, 4);//channels 116 skip_bits(&gb, 4);//channels
117 c->MSS = get_bits1(&gb); 117 c->MSS = get_bits1(&gb);
118 c->frames = 1 << (get_bits(&gb, 3) * 2); 118 c->frames = 1 << (get_bits(&gb, 3) * 2);
119 119
120 if(vlc_inited) return 0; 120 if(vlc_initialized) return 0;
121 av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n"); 121 av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n");
122 122
123 init_vlc(&band_vlc, MPC8_BANDS_BITS, MPC8_BANDS_SIZE, 123 init_vlc(&band_vlc, MPC8_BANDS_BITS, MPC8_BANDS_SIZE,
124 mpc8_bands_bits, 1, 1, 124 mpc8_bands_bits, 1, 1,
125 mpc8_bands_codes, 1, 1, INIT_VLC_USE_STATIC); 125 mpc8_bands_codes, 1, 1, INIT_VLC_USE_STATIC);
174 &mpc8_q7_codes[i], 1, 1, INIT_VLC_USE_STATIC); 174 &mpc8_q7_codes[i], 1, 1, INIT_VLC_USE_STATIC);
175 init_vlc(&quant_vlc[3][i], MPC8_Q8_BITS, MPC8_Q8_SIZE, 175 init_vlc(&quant_vlc[3][i], MPC8_Q8_BITS, MPC8_Q8_SIZE,
176 &mpc8_q8_bits[i], 1, 1, 176 &mpc8_q8_bits[i], 1, 1,
177 &mpc8_q8_codes[i], 1, 1, INIT_VLC_USE_STATIC); 177 &mpc8_q8_codes[i], 1, 1, INIT_VLC_USE_STATIC);
178 } 178 }
179 vlc_inited = 1; 179 vlc_initialized = 1;
180 return 0; 180 return 0;
181 } 181 }
182 182
183 static int mpc8_decode_frame(AVCodecContext * avctx, 183 static int mpc8_decode_frame(AVCodecContext * avctx,
184 void *data, int *data_size, 184 void *data, int *data_size,