pcmconv: fix dither clipping
the check in dither() was inverted. we should only add noise when the output bit count is greater than input bit count (samples shifted up) to fill the lower zero bits produced by the shift.
This commit is contained in:
parent
2750062701
commit
7fc7802358
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ dither(int *y, int ibits, int obits, int count)
|
|||
{
|
||||
static ulong prnd;
|
||||
|
||||
if(ibits >= 32 || obits >= ibits)
|
||||
if(ibits >= 32 || ibits >= obits)
|
||||
return;
|
||||
|
||||
while(count--){
|
||||
|
|
Loading…
Reference in a new issue