From 713b0bffd6e172bc28b93a397101b626e9e3a8c8 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 27 Nov 2007 22:00:45 +0000 Subject: [PATCH] 10l: init_get_bits want size in bits, not bytes Originally committed as revision 11099 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index 7751bd18f2..9f912d36ee 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -138,7 +138,7 @@ static int vp6_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size, buf_size -= coeff_offset; if (s->use_huffman) { s->parse_coeff = vp6_parse_coeff_huffman; - init_get_bits(&s->gb, buf, buf_size); + init_get_bits(&s->gb, buf, buf_size<<3); } else { vp56_init_range_decoder(&s->cc, buf, buf_size); s->ccp = &s->cc;