shithub: libvpx

Download patch

ref: 9216ba58d8ac1589a3d2b00276db3e030cf40e9b
parent: e6c1993f1b0f876535e99661d48d395b1c4bf4b3
parent: 76550dfdc0a898cb9510977f79b43dbac1fd9de0
author: Paul Wilkins <paulwilkins@google.com>
date: Thu Feb 16 05:01:45 EST 2017

Merge "Bug in scale_sse_threshold()"

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -469,8 +469,8 @@
   if (cm->use_highbitdepth) {
     switch (cm->bit_depth) {
       case VPX_BITS_8: ret_val = thresh; break;
-      case VPX_BITS_10: ret_val = thresh >> 4; break;
-      case VPX_BITS_12: ret_val = thresh >> 8; break;
+      case VPX_BITS_10: ret_val = thresh << 4; break;
+      case VPX_BITS_12: ret_val = thresh << 8; break;
       default:
         assert(0 &&
                "cm->bit_depth should be VPX_BITS_8, "