shithub: libvpx

Download patch

ref: 0fc027ad33300516c0f75b260dfbf45f5605c580
parent: 7af0e984b8b83344e013bb24df18322823197eb2
author: Tom Finegan <tomfinegan@google.com>
date: Wed May 7 14:20:29 EDT 2014

vp9_pickmode: Fix signed/unsigned mismatch.

Avoids getting reverted on the next libvpx chrome roll attempt.

Change-Id: I2431bd601111a78320af5f211f6413009674f1c8

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -161,8 +161,8 @@
   struct macroblock_plane *const p = &x->plane[0];
   struct macroblockd_plane *const pd = &xd->plane[0];
 
-  int var = cpi->fn_ptr[bsize].vf(p->src.buf, p->src.stride,
-                                  pd->dst.buf, pd->dst.stride, &sse);
+  unsigned int var = cpi->fn_ptr[bsize].vf(p->src.buf, p->src.stride,
+                                           pd->dst.buf, pd->dst.stride, &sse);
 
   // TODO(jingning) This is a temporary solution to account for frames with
   // light changes. Need to customize the rate-distortion modeling for non-RD
--