ref: dbdd0f664f37a11b8e06e07905d12527509e2723
parent: c0ae72652fc9619e8b1e8f365ab977614179779a
author: menno <menno>
date: Wed Nov 19 06:43:57 EST 2003
Fixed wrong negative clipping
--- a/libfaad/output.c
+++ b/libfaad/output.c
@@ -22,7 +22,7 @@
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through [email protected].
**
-** $Id: output.c,v 1.29 2003/11/12 20:47:58 menno Exp $
+** $Id: output.c,v 1.30 2003/11/19 11:43:57 menno Exp $
**/
#include "common.h"
@@ -94,7 +94,7 @@
#ifndef HAS_LRINTF
inp += -0.5f;
#endif
- if (inp <= -32769.0f)
+ if (inp <= -32768.0f)
{
inp = -32768.0f;
}
@@ -120,7 +120,7 @@
#ifndef HAS_LRINTF
inp += -0.5f;
#endif
- if (inp <= -8388609.0f)
+ if (inp <= -8388608.0f)
{
inp = -8388608.0f;
}
@@ -146,7 +146,7 @@
#ifndef HAS_LRINTF
inp += -0.5f;
#endif
- if (inp <= -2147483649.0f)
+ if (inp <= -2147483648.0f)
{
inp = -2147483648.0f;
}