aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-19 13:32:40 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-19 13:52:05 +0100
commit58fba4b02f65e8f9878cd5e41d24bb8e452f6631 (patch)
treee2989e6a9ad0d06266b06f6a8434e16c306f4144
parentd877b88f5188fa3d71525c8d4d404daa4798e9fb (diff)
downloadffmpeg-58fba4b02f65e8f9878cd5e41d24bb8e452f6631.tar.gz
avcodec/aacsbr: Replace a noise_facs_q check by an av_assert0
The replaced check should have become redundant Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/aacsbr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index 7fb21cc3fb..f7c9b22d7f 100644
--- a/libavcodec/aacsbr.c
+++ b/libavcodec/aacsbr.c
@@ -96,10 +96,7 @@ static void sbr_dequant(SpectralBandReplication *sbr, int id_aac)
float temp1 = exp2f(NOISE_FLOOR_OFFSET - sbr->data[0].noise_facs_q[e][k] + 1);
float temp2 = exp2f(12 - sbr->data[1].noise_facs_q[e][k]);
float fac;
- if (temp1 > 1E20) {
- av_log(NULL, AV_LOG_ERROR, "envelope scalefactor overflow in dequant\n");
- temp1 = 1;
- }
+ av_assert0(temp1 <= 1E20);
fac = temp1 / (1.0f + temp2);
sbr->data[0].noise_facs[e][k] = fac;
sbr->data[1].noise_facs[e][k] = fac * temp2;