1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/atrac3: Inline constants

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-10-23 11:42:15 +02:00
parent e4eeb851fd
commit 2d4f878626

View 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,
spectral_coeff_tab[selector-1].bits, 3);
ATRAC3_VLC_BITS, 3);
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,
spectral_coeff_tab[selector - 1].bits, 3);
ATRAC3_VLC_BITS, 3);
mantissas[i * 2 ] = mantissa_vlc_tab[huff_symb * 2 ];
mantissas[i * 2 + 1] = mantissa_vlc_tab[huff_symb * 2 + 1];
}