aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2025-08-20 21:29:42 +0200
committermichaelni <michael@niedermayer.cc>2025-08-29 12:29:52 +0000
commit0828a3b6366042a2d65188c89a1f5bf0ae52ec75 (patch)
treec3605f55da214cdbf9855533c7ad8d48761982c1 /tools/python
parente3f01682d77679397593656b741d98503ceb6d4b (diff)
downloadffmpeg-0828a3b6366042a2d65188c89a1f5bf0ae52ec75.tar.gz
avcodec/atrac3: fix inconsistent band num calculation
'decode_spectrum' reads 5 bits from bitstream to get number of encoded subbands – so 31 means all 32 subbands are encoded. This value also is used to determinate the number of used band in the hybrid filterbank. 'subband_tab' array contains 33 values of MDCT spec line positions started from 0 line and used to map subband number in to the range of mdct lines. Since the subband_num returned by decode_spectrum actually is number – 1 and subband_tab started from 0 we need to add 1 to make num_bands calculation correct.
Diffstat (limited to 'tools/python')
0 files changed, 0 insertions, 0 deletions