diff options
author | David Conrad <lessen42@gmail.com> | 2010-07-23 21:46:01 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2010-07-23 21:46:01 +0000 |
commit | 24675b8093e2f6944a1014e98ac455d4df75e8a2 (patch) | |
tree | b198dc85546a47034468c664e419f1ad9183fc33 /libavcodec/vp56.h | |
parent | 13a1304bb324179cf07e6ae5f494dacf335ad6c9 (diff) | |
download | ffmpeg-24675b8093e2f6944a1014e98ac455d4df75e8a2.tar.gz |
vp56's arith decoder's code_word is only 16 bits, no need for unsigned long
Originally committed as revision 24465 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp56.h')
-rw-r--r-- | libavcodec/vp56.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp56.h b/libavcodec/vp56.h index 1e069dc4d5..298aba3d2d 100644 --- a/libavcodec/vp56.h +++ b/libavcodec/vp56.h @@ -56,7 +56,7 @@ typedef struct { bits left) in order to eliminate a negate in cache refilling */ const uint8_t *buffer; const uint8_t *end; - unsigned long code_word; + unsigned int code_word; } VP56RangeCoder; typedef struct { @@ -196,7 +196,7 @@ static inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob) /* Don't put c->high in a local variable; if we do that, gcc gets * the stupids and turns the code below into a branch again. */ int bits = c->bits; - unsigned long code_word = c->code_word; + unsigned int code_word = c->code_word; unsigned int low = 1 + (((c->high - 1) * prob) >> 8); unsigned int low_shift = low << 8; int bit = code_word >= low_shift; |