commit | a70729c0b4b52fdfa2aeddf8dd931c22d9d40b96 | [log] [tgz] |
---|---|---|
author | Jean-Marc Valin <jean-marc.valin@octasic.com> | Mon Jan 31 18:25:47 2011 -0500 |
committer | Jean-Marc Valin <jean-marc.valin@octasic.com> | Mon Jan 31 18:25:47 2011 -0500 |
tree | f4920f10723cb7e6606b0cbf142bd94348c296ff | |
parent | 9ed526cc849c2f4dcebb6f43d95af674d75c419d [diff] [blame] |
Koen's decoder updates
diff --git a/src/opus_decoder.h b/src/opus_decoder.h index 3a39c87..875bb3c 100644 --- a/src/opus_decoder.h +++ b/src/opus_decoder.h
@@ -47,6 +47,10 @@ int Fs; }; +inline short ADD_SAT16(a, b) { + int sum = a + b; + return sum > 32767 ? 32767 : sum < -32768 ? -32768 : (short)sum; +} #endif /* OPUS_DECODER_H */