OSDN Git Service

avcodec/utvideodec: Increase vlc len
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 29 May 2014 06:41:15 +0000 (08:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Jun 2014 12:56:00 +0000 (14:56 +0200)
Fixes a regression since fb3e380 similar to ticket #2661,
reported by fluffrabbit at aol dot com.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utvideodec.c

index 2bd177d..296e011 100644 (file)
@@ -71,7 +71,7 @@ static int build_huff(const uint8_t *src, VLC *vlc, int *fsym)
         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),
                               codes, sizeof(*codes), sizeof(*codes),
                               syms,  sizeof(*syms),  sizeof(*syms), 0);