Revision 932e6a5a libavcodec/aaccoder.c
libavcodec/aaccoder.c  

72  72 
double qc; 
73  73 
for (i = 0; i < size; i++) { 
74  74 
qc = scaled[i] * Q34; 
75 
out[i][0] = (int)FFMIN((int)qc, maxval);


76 
out[i][1] = (int)FFMIN((int)(qc + 0.4054), maxval);


75 
out[i][0] = (int)FFMIN(qc, (double)maxval);


76 
out[i][1] = (int)FFMIN(qc + 0.4054, (double)maxval);


77  77 
if (is_signed && in[i] < 0.0f) { 
78  78 
out[i][0] = out[i][0]; 
79  79 
out[i][1] = out[i][1]; 
Also available in: Unified diff