]> git.sesse.net Git - ffmpeg/commit
avcodec/atrac3: Don't use too big VLC tables
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 23 Oct 2020 09:33:34 +0000 (11:33 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 27 Oct 2020 09:19:38 +0000 (10:19 +0100)
commite4eeb851fdfd023662f999093b473b76255cec03
tree29fedc265736e7b09d5dfaad31c893ed0cf088f3
parent718e862da3e254c58447c0873decb335f688fa09
avcodec/atrac3: Don't use too big VLC tables

The longest code of any of the VLC tables used is eight bits long, so
using nine bits long VLC tables is wasteful. Furthermore, there are only
seven VLC tables used, yet the code up until now made it look like there
should be eight. This has been corrected, too.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/atrac3.c
libavcodec/atrac3data.h