summaryrefslogtreecommitdiffstats
path: root/libvpx/vp9/decoder/vp9_dboolhuff.h
diff options
context:
space:
mode:
authorhkuang <hkuang@google.com>2013-11-13 18:48:14 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-13 18:48:14 -0800
commita1b7a7bb1ccf3f479bbca69a52a76eb05789dbaf (patch)
tree098e8b4772cb24cf53e3430f5a28ea1b80e875bd /libvpx/vp9/decoder/vp9_dboolhuff.h
parent60f286339b17c89a358efbc94fb18d322faf4552 (diff)
parent5ae7ac49f08a179e4f054d99fcfc9dce78d26e58 (diff)
downloadandroid_external_libvpx-a1b7a7bb1ccf3f479bbca69a52a76eb05789dbaf.tar.gz
android_external_libvpx-a1b7a7bb1ccf3f479bbca69a52a76eb05789dbaf.tar.bz2
android_external_libvpx-a1b7a7bb1ccf3f479bbca69a52a76eb05789dbaf.zip
am 5ae7ac49: Roll latest libvpx into Android.
* commit '5ae7ac49f08a179e4f054d99fcfc9dce78d26e58': Roll latest libvpx into Android.
Diffstat (limited to 'libvpx/vp9/decoder/vp9_dboolhuff.h')
-rw-r--r--libvpx/vp9/decoder/vp9_dboolhuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvpx/vp9/decoder/vp9_dboolhuff.h b/libvpx/vp9/decoder/vp9_dboolhuff.h
index c864516..fd8e74c 100644
--- a/libvpx/vp9/decoder/vp9_dboolhuff.h
+++ b/libvpx/vp9/decoder/vp9_dboolhuff.h
@@ -44,7 +44,7 @@ static int vp9_read(vp9_reader *br, int probability) {
VP9_BD_VALUE bigsplit;
int count;
unsigned int range;
- unsigned int split = 1 + (((br->range - 1) * probability) >> 8);
+ unsigned int split = ((br->range * probability) + (256 - probability)) >> 8;
if (br->count < 0)
vp9_reader_fill(br);