From: Yaowu Xu Date: Thu, 25 Sep 2014 15:58:57 +0000 (-0700) Subject: Fix IOCs X-Git-Tag: v1.4.0~721^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6165041074bdf3f2bc2a3283ee58e72027164ba;p=libvpx 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 --- diff --git a/vp8/encoder/mcomp.c b/vp8/encoder/mcomp.c index 54abe76ac..545f2c893 100644 --- a/vp8/encoder/mcomp.c +++ b/vp8/encoder/mcomp.c @@ -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 */