summaryrefslogtreecommitdiff
path: root/libavcodec/vp56.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/vp56.h')
-rw-r--r--libavcodec/vp56.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp56.h b/libavcodec/vp56.h
index fb8bbba6fc..023f3b9c23 100644
--- a/libavcodec/vp56.h
+++ b/libavcodec/vp56.h
@@ -27,6 +27,7 @@
#include "vp56data.h"
#include "dsputil.h"
#include "mpegvideo.h"
+#include "bytestream.h"
typedef struct vp56_context vp56_context_t;
@@ -169,8 +170,7 @@ static inline void vp56_init_range_decoder(vp56_range_coder_t *c,
c->high = 255;
c->bits = 8;
c->buffer = buf;
- c->code_word = *c->buffer++ << 8;
- c->code_word |= *c->buffer++;
+ c->code_word = bytestream_get_be16(&c->buffer);
}
static inline int vp56_rac_get_prob(vp56_range_coder_t *c, uint8_t prob)