diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-28 21:19:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-29 02:45:17 +0200 |
commit | f6ba58d193d965df388224b1b18a6066ee9b4eea (patch) | |
tree | 6c66136bab77bdbc51669264a5d76b467691db91 /libavcodec/aacsbr.c | |
parent | c4c73020f4bbf261f0b263be82de575c17fa5a60 (diff) | |
download | ffmpeg-f6ba58d193d965df388224b1b18a6066ee9b4eea.tar.gz |
avcodec/aacsbr: Fix libavcodec/aacsbr.c:257:59: runtime error: division by zero
Fixes: 1882/clusterfuzz-testcase-minimized-5539735650959360
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacsbr.c')
-rw-r--r-- | libavcodec/aacsbr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c index 15956e3f05..1d2a8d472d 100644 --- a/libavcodec/aacsbr.c +++ b/libavcodec/aacsbr.c @@ -241,6 +241,7 @@ static void sbr_gain_calc(AACContext *ac, SpectralBandReplication *sbr, ((1.0f + sbr->e_curr[e][m]) * (1.0f + sbr->q_mapped[e][m]))); } + sbr->gain[e][m] += FLT_MIN; } for (m = sbr->f_tablelim[k] - sbr->kx[1]; m < sbr->f_tablelim[k + 1] - sbr->kx[1]; m++) { sum[0] += sbr->e_origmapped[e][m]; |