audio/pcmconv: mistake for double to int conversion (thanks ftrvxmtrx)
This commit is contained in:
parent
bedfd8f361
commit
2823498ac3
|
@ -229,9 +229,9 @@ ficonv(int *dst, uchar *src, int bits, int skip, int count)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while(count--){
|
while(count--){
|
||||||
float d;
|
double d;
|
||||||
|
|
||||||
d = *((float*)src);
|
d = *((double*)src);
|
||||||
if(d > 1.0)
|
if(d > 1.0)
|
||||||
*dst++ = 0x7fffffff;
|
*dst++ = 0x7fffffff;
|
||||||
else if(d < -1.0)
|
else if(d < -1.0)
|
||||||
|
|
Loading…
Reference in a new issue