Skip to content
Snippets Groups Projects
Commit 713b0bff authored by Aurelien Jacobs's avatar Aurelien Jacobs
Browse files

10l: init_get_bits want size in bits, not bytes

Originally committed as revision 11099 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 48b36ec2
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ static int vp6_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size, ...@@ -138,7 +138,7 @@ static int vp6_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size,
buf_size -= coeff_offset; buf_size -= coeff_offset;
if (s->use_huffman) { if (s->use_huffman) {
s->parse_coeff = vp6_parse_coeff_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 { } else {
vp56_init_range_decoder(&s->cc, buf, buf_size); vp56_init_range_decoder(&s->cc, buf, buf_size);
s->ccp = &s->cc; s->ccp = &s->cc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment