History

avcodec/atrac3: Use least max_depth for get_vlc2()

Andreas Rheinhardt committed 6 years ago

Commit 38afc681 parent 2d4f8781 file · +2 −2Browse files

Unified · Split

libavcodec/atrac3.c+2−2
@@ -247,7 +247,7 @@ static void read_quant_spectral_coeffs(GetBitContext *gb, int selector, · 246 unmodified lines
247 if (selector != 1) {247 if (selector != 1) {
248 for (i = 0; i < num_codes; i++) {248 for (i = 0; i < num_codes; i++) {
249 huff_symb = get_vlc2(gb, spectral_coeff_tab[selector-1].table,249 huff_symb = get_vlc2(gb, spectral_coeff_tab[selector-1].table,
250 ATRAC3_VLC_BITS, 3);250 ATRAC3_VLC_BITS, 1);
251 huff_symb += 1;251 huff_symb += 1;
252 code = huff_symb >> 1;252 code = huff_symb >> 1;
253 if (huff_symb & 1)253 if (huff_symb & 1)
@@ -257,7 +257,7 @@ static void read_quant_spectral_coeffs(GetBitContext *gb, int selector, · 3 unmodified lines
257 } else {257 } else {
258 for (i = 0; i < num_codes; i++) {258 for (i = 0; i < num_codes; i++) {
259 huff_symb = get_vlc2(gb, spectral_coeff_tab[selector - 1].table,259 huff_symb = get_vlc2(gb, spectral_coeff_tab[selector - 1].table,
260 ATRAC3_VLC_BITS, 3);260 ATRAC3_VLC_BITS, 1);
261 mantissas[i * 2 ] = mantissa_vlc_tab[huff_symb * 2 ];261 mantissas[i * 2 ] = mantissa_vlc_tab[huff_symb * 2 ];
262 mantissas[i * 2 + 1] = mantissa_vlc_tab[huff_symb * 2 + 1];262 mantissas[i * 2 + 1] = mantissa_vlc_tab[huff_symb * 2 + 1];
263 }263 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t