]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/atrac3: Use least max_depth for get_vlc2()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 23 Oct 2020 09:45:15 +0000 (11:45 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 27 Oct 2020 09:31:16 +0000 (10:31 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/atrac3.c

index a3e7d96a65e6652de85735d8013a9a2b28576b90..1e884a56b6f94ff73879e82e6f7e49d1aea7b3b3 100644 (file)
@@ -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];
             }