]> git.sesse.net Git - ffmpeg/commit
ac3enc: do not clip coefficients after transforms
authorLynne <dev@lynne.ee>
Sat, 9 Jan 2021 08:05:18 +0000 (09:05 +0100)
committerLynne <dev@lynne.ee>
Thu, 14 Jan 2021 00:44:17 +0000 (01:44 +0100)
commit784c08af3005390cb1d74add13b58edf1663cd40
treed53f1df27f6540711721c56130dd048922910716
parent2d85e6e7230406e33e61d903b9c29ab562e158bd
ac3enc: do not clip coefficients after transforms

In either encoder, its impossible for the coefficients to go past 25 bits
right after the MDCT. Our MDCT is numerically stable.
For the floating point encoder, in case a NaN is contained, lrintf() will
raise a floating point exception during the conversion.
libavcodec/ac3enc_template.c