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

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Thu Apr 16 20:19:11 CEST 2015

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?

Best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-aacpsy-avoid-psy_band-threshold-becoming-NaN.patch
Type: text/x-diff
Size: 1484 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150416/710dd3b7/attachment.bin>

More information about the ffmpeg-devel mailing list