# HG changeset patch # User nenolod # Date 1148238835 25200 # Node ID 0c43b993fc950768f801919ae3e0b4162777730e # Parent cb5780140f43afa5d8060c6eecf6255d9e78261c [svn] - if we're going to clip, just throw back the original data diff -r cb5780140f43 -r 0c43b993fc95 Plugins/Input/mpg123/psycho.c --- a/Plugins/Input/mpg123/psycho.c Sat May 20 22:25:31 2006 -0700 +++ b/Plugins/Input/mpg123/psycho.c Sun May 21 12:13:55 2006 -0700 @@ -439,10 +439,18 @@ lprev2 = left2; rprev2 = right2; +#if 0 if (left < -32768) left = -32768; else if (left > 32767) left = 32767; if (right < -32768) right = -32768; else if (right > 32767) right = 32767; +#endif + /* if we're going to clip, just throw back the original data */ + if (left < -32768 || left > 32767 || right < -32768 || right > 32767) + { + dataptr += 2; + continue; + } dataptr[0] = left; dataptr[1] = right;