summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/aacdec_fixed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c
index 7b5e40e..2754766 100644
--- a/libavcodec/aacdec_fixed.c
+++ b/libavcodec/aacdec_fixed.c
@@ -415,7 +415,9 @@ static void apply_independent_coupling_fixed(AACContext *ac,
c = cce_scale_fixed[gain & 7];
shift = (gain-1024) >> 3;
- if (shift < 0) {
+ if (shift < -31) {
+ return;
+ } else if (shift < 0) {
shift = -shift;
round = 1 << (shift - 1);
OpenPOWER on IntegriCloud