]> granicus.if.org Git - libvpx/commitdiff
Fix IOCs
authorYaowu Xu <yaowu@google.com>
Thu, 25 Sep 2014 15:58:57 +0000 (08:58 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 25 Sep 2014 15:58:57 +0000 (08:58 -0700)
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

vp8/encoder/mcomp.c

index 54abe76acd2a2bd87885faca80eda252f6ffdab2..545f2c8932160f115df3529020eb2d3bd28d22dd 100644 (file)
@@ -393,8 +393,8 @@ int vp8_find_best_sub_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
 #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 */