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