[FFmpeg-devel] [PATCH] aacpsy: avoid norm_fac becoming NaN
michaelni at gmx.at
Thu Apr 16 20:35:53 CEST 2015
On Thu, Apr 16, 2015 at 03:26:55PM -0300, Claudio Freire wrote:
> On Thu, Apr 16, 2015 at 3:19 PM, Andreas Cadhalpun
> <andreas.cadhalpun at googlemail.com> wrote:
> > On 16.04.2015 19:41, Claudio Freire wrote:
> >> It should be if band->thr > 0.0f, all divisions by zero return
> >> something that casts into an ~1:
> > OK, new patch attached.
> > If band->thr is 0.0f and band->active_lines is not, it takes
> > a bit longer to get to NaN.
> > I assume band->thr < 0.0f is not possible?
> It's not, it's an absolute energy threshold.
> LGTM now.
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel