[FFmpeg-devel] [PATCH] aacpsy: avoid norm_fac becoming NaN

Claudio Freire klaussfreire at gmail.com
Thu Apr 16 20:26:55 CEST 2015


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.


More information about the ffmpeg-devel mailing list