summaryrefslogtreecommitdiff
path: root/libavcodec/vp56.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-06-02 01:41:07 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-06-02 01:41:07 +0000
commit2c124cb65c24cc7d0538260726045d68442eef25 (patch)
tree3752a8d02aa478d977264e8ce0438f49c92a4aca /libavcodec/vp56.h
parent29b29011e5631c4e867baf42258a00886d142841 (diff)
Use AV_xx throughout libavcodec
Originally committed as revision 9169 to svn://svn.ffmpeg.org/ffmpeg/trunk
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)