]> git.sesse.net Git - ffmpeg/commit
avcodec/dstdec: Replace AC overread check by sample rate check
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Jul 2020 19:27:23 +0000 (21:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 2 Jul 2020 15:14:31 +0000 (17:14 +0200)
commit1679f23beb3cfc3639352b3cbe7c08c00189c6b0
tree37ca7977e5374b8b7a6422d88b0b439bf0262acd
parentc0c45e238f126a28d91d48ee625a732f6fee1a88
avcodec/dstdec: Replace AC overread check by sample rate check

Real files do skip coding 0 bits at the end, thus this kind of check
does not work reliable.

Fixes: Ticket 8770
Fixes: dst-256fs44-6ch-refdstencoder.dff
The samplerate is specified in ISO/IEC 14496-3:2005(E) as one of 3 fixed
values, this also can be used to limit the duration and avoid the timeout

This reverts commit f6df99dba1ae64b05d08fba8160d13eb9795042f.
libavcodec/dstdec.c