Revision f66e4f5f libavcodec/truespeech.c
libavcodec/truespeech.c  

281  281 
for(k = 0; k < 8; k++) 
282  282 
sum += ptr0[k] * ptr1[k]; 
283  283 
sum = (sum + (out[i] << 12) + 0x800) >> 12; 
284 
out[i] = clip(sum, 0x7FFE, 0x7FFE); 

284 
out[i] = av_clip(sum, 0x7FFE, 0x7FFE);


285  285 
for(k = 7; k > 0; k) 
286  286 
ptr0[k] = ptr0[k  1]; 
287  287 
ptr0[0] = out[i]; 
...  ...  
311  311 
sum += ptr0[k] * t[k]; 
312  312 
for(k = 7; k > 0; k) 
313  313 
ptr0[k] = ptr0[k  1]; 
314 
ptr0[0] = clip((sum + 0x800) >> 12, 0x7FFE, 0x7FFE); 

314 
ptr0[0] = av_clip((sum + 0x800) >> 12, 0x7FFE, 0x7FFE);


315  315  
316  316 
sum = ((ptr0[1] * (dec>filtval  (dec>filtval >> 2))) >> 4) + sum; 
317  317 
sum = sum  (sum >> 3); 
318 
out[i] = clip((sum + 0x800) >> 12, 0x7FFE, 0x7FFE); 

318 
out[i] = av_clip((sum + 0x800) >> 12, 0x7FFE, 0x7FFE);


319  319 
} 
320  320 
} 
321  321 
Also available in: Unified diff