[FFmpeg-devel] [PATCH] avcodec/aacsbr: Fix libavcodec/aacsbr.c:257:59: runtime error: division by zero
Michael Niedermayer
michael at niedermayer.cc
Mon May 29 03:01:58 EEST 2017
On Sun, May 28, 2017 at 08:35:25PM +0100, Rostislav Pehlivanov wrote:
> On 28 May 2017 at 20:19, Michael Niedermayer <michael at niedermayer.cc> wrote:
>
> > Fixes: 1882/clusterfuzz-testcase-minimized-5539735650959360
> >
> > Found-by: continuous fuzzing process https://github.com/google/oss-
> > fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> > libavcodec/aacsbr.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > 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];
> > --
> > 2.13.0
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
>
> Patch LGTM
applied
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170529/544fe316/attachment.sig>
More information about the ffmpeg-devel
mailing list