avcodec/utvideodec: Increase vlc len

Fixes a regression since fb3e380 similar to ticket #2661,
reported by fluffrabbit at aol dot com.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/76/merge
Carl Eugen Hoyos 11 years ago committed by Michael Niedermayer
parent 4b6cb1cc69
commit 673716c54b
  1. 2
      libavcodec/utvideodec.c

@ -71,7 +71,7 @@ static int build_huff(const uint8_t *src, VLC *vlc, int *fsym)
code += 0x80000000u >> (he[i].len - 1); code += 0x80000000u >> (he[i].len - 1);
} }
return ff_init_vlc_sparse(vlc, FFMIN(he[last].len, 10), last + 1, return ff_init_vlc_sparse(vlc, FFMIN(he[last].len, 11), last + 1,
bits, sizeof(*bits), sizeof(*bits), bits, sizeof(*bits), sizeof(*bits),
codes, sizeof(*codes), sizeof(*codes), codes, sizeof(*codes), sizeof(*codes),
syms, sizeof(*syms), sizeof(*syms), 0); syms, sizeof(*syms), sizeof(*syms), 0);

Loading…
Cancel
Save