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:
cinap_lenrek 2014-03-03 09:00:59 +01:00
parent 2750062701
commit 7fc7802358

View file

@ -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--){