summaryrefslogtreecommitdiff
path: root/libavcodec/vp56rac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/vp56rac.c')
-rw-r--r--libavcodec/vp56rac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp56rac.c b/libavcodec/vp56rac.c
index 752a42bc6b..f11531de24 100644
--- a/libavcodec/vp56rac.c
+++ b/libavcodec/vp56rac.c
@@ -40,8 +40,8 @@ const uint8_t ff_vp56_norm_shift[256]= {
void ff_vp56_init_range_decoder(VP56RangeCoder *c, const uint8_t *buf, int buf_size)
{
c->high = 255;
- c->bits = -8;
+ c->bits = -16;
c->buffer = buf;
c->end = buf + buf_size;
- c->code_word = bytestream_get_be16(&c->buffer);
+ c->code_word = bytestream_get_be24(&c->buffer);
}