summaryrefslogtreecommitdiff
path: root/libavcodec/atrac3data.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-23 11:33:34 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-27 10:19:38 +0100
commite4eeb851fdfd023662f999093b473b76255cec03 (patch)
tree29fedc265736e7b09d5dfaad31c893ed0cf088f3 /libavcodec/atrac3data.h
parent718e862da3e254c58447c0873decb335f688fa09 (diff)
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>
Diffstat (limited to 'libavcodec/atrac3data.h')
-rw-r--r--libavcodec/atrac3data.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/atrac3data.h b/libavcodec/atrac3data.h
index 5d91274f48..a731fb7c4a 100644
--- a/libavcodec/atrac3data.h
+++ b/libavcodec/atrac3data.h
@@ -103,10 +103,6 @@ static const uint8_t* const huff_bits[7] = {
huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7,
};
-static const uint16_t atrac3_vlc_offs[9] = {
- 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096
-};
-
/* selector tables */
static const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 };