comparison truespeech.c @ 3055:c892b3b6bfbf libavcodec

Silence warnings, these came when some tables got declared as const.
author banan
date Fri, 20 Jan 2006 23:06:35 +0000
parents 0b546eab515d
children 82277c821113
comparison
equal deleted inserted replaced
3054:d640e46c69ea 3055:c892b3b6bfbf
199 for(i = 0; i < 146; i++) 199 for(i = 0; i < 146; i++)
200 tmp[i] = dec->filtbuf[i]; 200 tmp[i] = dec->filtbuf[i];
201 off = (t / 25) + dec->offset1[quart >> 1] + 18; 201 off = (t / 25) + dec->offset1[quart >> 1] + 18;
202 ptr0 = tmp + 145 - off; 202 ptr0 = tmp + 145 - off;
203 ptr1 = tmp + 146; 203 ptr1 = tmp + 146;
204 filter = ts_240 + (t % 25) * 2; 204 filter = (int16_t*)ts_240 + (t % 25) * 2;
205 for(i = 0; i < 60; i++){ 205 for(i = 0; i < 60; i++){
206 t = (ptr0[0] * filter[0] + ptr0[1] * filter[1] + 0x2000) >> 14; 206 t = (ptr0[0] * filter[0] + ptr0[1] * filter[1] + 0x2000) >> 14;
207 ptr0++; 207 ptr0++;
208 dec->newvec[i] = t; 208 dec->newvec[i] = t;
209 ptr1[i] = t; 209 ptr1[i] = t;
223 dec->pulseval[quart] >>= 2; 223 dec->pulseval[quart] >>= 2;
224 tmp[6 - i] = ts_562[dec->pulseoff[quart] * 4 + t]; 224 tmp[6 - i] = ts_562[dec->pulseoff[quart] * 4 + t];
225 } 225 }
226 226
227 coef = dec->pulsepos[quart] >> 15; 227 coef = dec->pulsepos[quart] >> 15;
228 ptr1 = ts_140 + 30; 228 ptr1 = (int16_t*)ts_140 + 30;
229 ptr2 = tmp; 229 ptr2 = tmp;
230 for(i = 0, j = 3; (i < 30) && (j > 0); i++){ 230 for(i = 0, j = 3; (i < 30) && (j > 0); i++){
231 t = *ptr1++; 231 t = *ptr1++;
232 if(coef >= t) 232 if(coef >= t)
233 coef -= t; 233 coef -= t;
236 ptr1 += 30; 236 ptr1 += 30;
237 j--; 237 j--;
238 } 238 }
239 } 239 }
240 coef = dec->pulsepos[quart] & 0x7FFF; 240 coef = dec->pulsepos[quart] & 0x7FFF;
241 ptr1 = ts_140; 241 ptr1 = (int16_t*)ts_140;
242 for(i = 30, j = 4; (i < 60) && (j > 0); i++){ 242 for(i = 30, j = 4; (i < 60) && (j > 0); i++){
243 t = *ptr1++; 243 t = *ptr1++;
244 if(coef >= t) 244 if(coef >= t)
245 coef -= t; 245 coef -= t;
246 else{ 246 else{