]> granicus.if.org Git - libvpx/commitdiff
fixed comparison of different int types.
authorYaowu Xu <yaowu@google.com>
Mon, 12 May 2014 17:01:00 +0000 (10:01 -0700)
committerYaowu Xu <yaowu@google.com>
Mon, 12 May 2014 17:01:00 +0000 (10:01 -0700)
Change-Id: Iaa5543eb9e17589d46d9ed2bc363e2646ed4e01e

vp9/encoder/vp9_encoder.c

index cc2c552a73f69ce9622b093c8abcca5ce53fdcc3..52f958fcb5417e97f13bcb8101549cf3d9cb42f8 100644 (file)
@@ -761,7 +761,7 @@ static void cal_nmvsadcosts_hp(int *mvsadcost[2]) {
 
 
 VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf) {
-  int i, j;
+  unsigned int i, j;
   VP9_COMP *const cpi = vpx_memalign(32, sizeof(VP9_COMP));
   VP9_COMMON *const cm = cpi != NULL ? &cpi->common : NULL;
 
@@ -1054,7 +1054,7 @@ VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf) {
 }
 
 void vp9_remove_compressor(VP9_COMP *cpi) {
-  int i;
+  unsigned int i;
 
   if (!cpi)
     return;