summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorpaulwilkins <paulwilkins@google.com>2016-06-30 13:38:57 +0100
committerpaulwilkins <paulwilkins@google.com>2016-06-30 13:38:57 +0100
commite25d6252a41bcc10bd099569193aac4a032589fc (patch)
treeddc816c2550a09c7575d853ad34a2d43b74d76bd /vp9
parentf9a3d08f1b4c1a41d87d9d74b640d68e9dacda8d (diff)
downloadlibvpx-e25d6252a41bcc10bd099569193aac4a032589fc.tar
libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.tar.gz
libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.tar.bz2
libvpx-e25d6252a41bcc10bd099569193aac4a032589fc.zip
Fix error in get_ul_intra_threshold() for 10/12 bit.
The scaling of the threshold for 10 and 12 bit here appears to be in the wrong direction. For 10 and 12 bit we expect sse values to be higher and hence the threshold used should be scaled up not down. Change-Id: I2678116652b539aef48100e0f22873edd4f5a786
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_firstpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index 11b397cd6..66ccc92c4 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -506,10 +506,10 @@ static int get_ul_intra_threshold(VP9_COMMON *cm) {
ret_val = UL_INTRA_THRESH;
break;
case VPX_BITS_10:
- ret_val = UL_INTRA_THRESH >> 2;
+ ret_val = UL_INTRA_THRESH << 2;
break;
case VPX_BITS_12:
- ret_val = UL_INTRA_THRESH >> 4;
+ ret_val = UL_INTRA_THRESH << 4;
break;
default:
assert(0 && "cm->bit_depth should be VPX_BITS_8, "