The ff_dca_vlc_transition_mode VLCs don't use an offset at all, so just use ordinary VLCs for them.
Showing the changes to libavcodec/dca_core.c (1 of 3 files). Show all
Unified · Split
| @@ -456,7 +456,8 @@ static int parse_subframe_header(DCACoreDecoder *s, int sf, · 455 unmodified lines | ||
| 456 | 456 | int sel = s->transition_mode_sel[ch]; |
| 457 | 457 | for (band = 0; band < s->subband_vq_start[ch]; band++) |
| 458 | 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 | |