shithub: libvpx

Download patch

ref: ed5ab7fa495e1ea030359c316df8b605e61219e0
parent: 9a6740af807d47a605d600e008e60f5f8364dd1f
author: Pascal Massimino <pascal.massimino@gmail.com>
date: Wed Nov 17 11:50:02 EST 2010

remove warning

was having: "vp8/encoder/onyx_if.c:5365: warning: comparison of unsigned expression >= 0 is always true"

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -5362,12 +5362,12 @@
 {
     VP8_COMP *cpi = (VP8_COMP *) comp;
 
-    if (horiz_mode >= NORMAL && horiz_mode <= ONETWO)
+    if (horiz_mode <= ONETWO)
         cpi->common.horiz_scale = horiz_mode;
     else
         return -1;
 
-    if (vert_mode >= NORMAL && vert_mode <= ONETWO)
+    if (vert_mode <= ONETWO)
         cpi->common.vert_scale  = vert_mode;
     else
         return -1;
--