summaryrefslogtreecommitdiff
path: root/libavcodec/x86/vp56_arith.h
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2010-08-12 01:11:32 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2010-08-12 01:11:32 +0000
commit05c04cdf54fee9332d337380fd4cd8502bdac2be (patch)
treea34738cea5f0b5286f5f31c996c8f634361cc31c /libavcodec/x86/vp56_arith.h
parentd2064fd42b2dd1cf1c44e5c4fc4b8aaba6698637 (diff)
VP5/6/8: ~7% faster arithmetic decoding
Grab from the bitstream in 16-bit chunks instead of 8-bit chunks. TODO: grab in 32-bit chunks on 64-bit systems. Originally committed as revision 24783 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/vp56_arith.h')
-rw-r--r--libavcodec/x86/vp56_arith.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/vp56_arith.h b/libavcodec/x86/vp56_arith.h
index ae3bc3dc77..ddbf38b1a9 100644
--- a/libavcodec/x86/vp56_arith.h
+++ b/libavcodec/x86/vp56_arith.h
@@ -31,7 +31,7 @@ static av_always_inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob)
unsigned int code_word = vp56_rac_renorm(c);
unsigned int high = c->high;
unsigned int low = 1 + (((high - 1) * prob) >> 8);
- unsigned int low_shift = low << 8;
+ unsigned int low_shift = low << 16;
int bit = 0;
__asm__(