aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-23 11:45:15 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-27 10:31:16 +0100
commit38afc6858ceb4932dce9dc577ce548a2623ba2eb (patch)
tree6003aa646d57982f47dc41b8e46b3b7acd58c096
parent2d4f87862697fe4990d33ad7e5f7d4cb989eba88 (diff)
downloadffmpeg-38afc6858ceb4932dce9dc577ce548a2623ba2eb.tar.gz
avcodec/atrac3: Use least max_depth for get_vlc2()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/atrac3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index a3e7d96a65..1e884a56b6 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -247,7 +247,7 @@ static void read_quant_spectral_coeffs(GetBitContext *gb, int selector,
if (selector != 1) {
for (i = 0; i < num_codes; i++) {
huff_symb = get_vlc2(gb, spectral_coeff_tab[selector-1].table,
- ATRAC3_VLC_BITS, 3);
+ ATRAC3_VLC_BITS, 1);
huff_symb += 1;
code = huff_symb >> 1;
if (huff_symb & 1)
@@ -257,7 +257,7 @@ static void read_quant_spectral_coeffs(GetBitContext *gb, int selector,
} else {
for (i = 0; i < num_codes; i++) {
huff_symb = get_vlc2(gb, spectral_coeff_tab[selector - 1].table,
- ATRAC3_VLC_BITS, 3);
+ ATRAC3_VLC_BITS, 1);
mantissas[i * 2 ] = mantissa_vlc_tab[huff_symb * 2 ];
mantissas[i * 2 + 1] = mantissa_vlc_tab[huff_symb * 2 + 1];
}