Paul B Mahol:
> + unsigned val, bits;
> +
> + bits = get_vlc2(gb, lag_tab.table, VLC_BITS, 3);
> + if (bits > 31) {
> *value = 0;
> return AVERROR_INVALIDDATA;
Using a signed int and checking for zero is simpler.
And the depth of this VLC is 1, not 3.
- Andreas