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
247247 if (selector != 1) {
248248 for (i = 0; i < num_codes; i++) {
249249 huff_symb = get_vlc2(gb, spectral_coeff_tab[selector-1].table,
250− ATRAC3_VLC_BITS, 3);
250+ ATRAC3_VLC_BITS, 1);
251251 huff_symb += 1;
252252 code = huff_symb >> 1;
253253 if (huff_symb & 1)
@@ -257,7 +257,7 @@ static void read_quant_spectral_coeffs(GetBitContext *gb, int selector, · 3 unmodified lines
257257 } else {
258258 for (i = 0; i < num_codes; i++) {
259259 huff_symb = get_vlc2(gb, spectral_coeff_tab[selector - 1].table,
260− ATRAC3_VLC_BITS, 3);
260+ ATRAC3_VLC_BITS, 1);
261261 mantissas[i * 2 ] = mantissa_vlc_tab[huff_symb * 2 ];
262262 mantissas[i * 2 + 1] = mantissa_vlc_tab[huff_symb * 2 + 1];
263263 }

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