History

avcodec/dca_core, dcahuff: Don't use DCAVLC unnecessarily

The ff_dca_vlc_transition_mode VLCs don't use an offset at all, so just use ordinary VLCs for them.

Andreas Rheinhardt committed 4 years ago

Commit 88198601 parent 649a2d83 files · +6 −7Browse files

Showing the changes to libavcodec/dca_core.c (1 of 3 files). Show all

Unified · Split

libavcodec/dca_core.c+2−1
@@ -456,7 +456,8 @@ static int parse_subframe_header(DCACoreDecoder *s, int sf, · 455 unmodified lines
456 int sel = s->transition_mode_sel[ch];456 int sel = s->transition_mode_sel[ch];
457 for (band = 0; band < s->subband_vq_start[ch]; band++)457 for (band = 0; band < s->subband_vq_start[ch]; band++)
458 if (s->bit_allocation[ch][band])458 if (s->bit_allocation[ch][band])
459 s->transition_mode[sf][ch][band] = dca_get_vlc(&s->gb, &ff_dca_vlc_transition_mode, sel);459 s->transition_mode[sf][ch][band] = get_vlc2(&s->gb, ff_dca_vlc_transition_mode[sel].table,
460 ff_dca_vlc_transition_mode[sel].bits,1);
460 }461 }
461 }462 }
462 463

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