Fixes the stereo_analysis() fixed-point overflow issue properly

This commit is contained in:
Jean-Marc Valin 2012-05-16 17:47:17 -04:00
parent 7143b2d0ff
commit 14d63d1879
2 changed files with 8 additions and 8 deletions

View file

@ -69,7 +69,7 @@ struct OpusDecoder {
#ifdef FIXED_POINT
static inline opus_int16 SAT16(opus_int32 x) {
return x > 32767 ? 32767 : x < -32768 ? -32768 : (opus_int16)x;
};
}
#endif