10l: init_get_bits want size in bits, not bytes
authorAurelien Jacobs <aurel@gnuage.org>
Tue, 27 Nov 2007 22:00:45 +0000 (22:00 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Tue, 27 Nov 2007 22:00:45 +0000 (22:00 +0000)
Originally committed as revision 11099 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp6.c

index 7751bd1..9f912d3 100644 (file)
@@ -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;
         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;
         } else {
             vp56_init_range_decoder(&s->cc, buf, buf_size);
             s->ccp = &s->cc;