summaryrefslogtreecommitdiff
path: root/libavcodec/aacsbr_fixed.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-20 03:36:10 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-20 03:46:43 +0100
commit8eadabf941a908101c69706063415d4ab6a630da (patch)
tree2bd48d9f65caa8b21f8c0e06292da10b07a47843 /libavcodec/aacsbr_fixed.c
parent03a34ef7a9259cefc673dcbd9d098bc15c99eda8 (diff)
avcodec/aacsbr_fixed: Replace a noise_facs_q check by an av_assert0
The replaced check should have become redundant Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacsbr_fixed.c')
-rw-r--r--libavcodec/aacsbr_fixed.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/aacsbr_fixed.c b/libavcodec/aacsbr_fixed.c
index 6ec39c14e4..2473de4ec5 100644
--- a/libavcodec/aacsbr_fixed.c
+++ b/libavcodec/aacsbr_fixed.c
@@ -192,10 +192,7 @@ static void sbr_dequant(SpectralBandReplication *sbr, int id_aac)
temp1.exp = NOISE_FLOOR_OFFSET - \
sbr->data[0].noise_facs_q[e][k] + 2;
temp1.mant = 0x20000000;
- if (temp1.exp > 66) { // temp1 > 1E20
- av_log(NULL, AV_LOG_ERROR, "envelope scalefactor overflow in dequant\n");
- temp1 = FLOAT_1;
- }
+ av_assert0(temp1.exp <= 66);
temp2.exp = 12 - sbr->data[1].noise_facs_q[e][k] + 1;
temp2.mant = 0x20000000;
fac = av_div_sf(temp1, av_add_sf(FLOAT_1, temp2));