shithub: libvpx

Download patch

ref: e6165041074bdf3f2bc2a3283ee58e72027164ba
parent: 6989e81d611b438c21cab5576d01b1b30c5b1e34
author: Yaowu Xu <yaowu@google.com>
date: Thu Sep 25 04:58:57 EDT 2014

Fix IOCs

A left shift of negative value causes IOC runtime warnings, this
commit converts two such left shifts to multiply to avoid IOCs.

Change-Id: I8811428768d7135e6e16af4b3094d0341589a995

--- a/vp8/encoder/mcomp.c
+++ b/vp8/encoder/mcomp.c
@@ -393,8 +393,8 @@
 #endif
 
     /* central mv */
-    bestmv->as_mv.row <<= 3;
-    bestmv->as_mv.col <<= 3;
+    bestmv->as_mv.row *= 8;
+    bestmv->as_mv.col *= 8;
     startmv = *bestmv;
 
     /* calculate central point error */