Define var threshold as unsigned int to match the type
authorYunqing Wang <yunqingwang@google.com>
Thu, 10 Apr 2014 15:32:23 +0000 (08:32 -0700)
committerYunqing Wang <yunqingwang@google.com>
Thu, 10 Apr 2014 16:48:33 +0000 (09:48 -0700)
Minor change to use matching type in comparison.

Change-Id: I670cae2d584918c67c1af791a797629f392f599e

vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_speed_features.h

index c52e4f3..a54fe79 100644 (file)
@@ -1483,8 +1483,8 @@ static void set_source_var_based_partition(VP9_COMP *cpi,
     const int pre_offset = (mi_row * MI_SIZE) * pre_stride +
                            (mi_col * MI_SIZE);
     const uint8_t *pre_src = cpi->Last_Source->y_buffer + pre_offset;
-    const int thr_32x32 = cpi->sf.source_var_thresh;
-    const int thr_64x64 = thr_32x32 << 1;
+    const unsigned int thr_32x32 = cpi->sf.source_var_thresh;
+    const unsigned int thr_64x64 = thr_32x32 << 1;
     int i, j;
     int index;
     diff d32[4];
index 72f548a..5542297 100644 (file)
@@ -344,7 +344,7 @@ typedef struct {
   int search_type_check_frequency;
 
   // The threshold used in SOURCE_VAR_BASED_PARTITION search type.
-  int source_var_thresh;
+  unsigned int source_var_thresh;
 } SPEED_FEATURES;
 
 struct VP9_COMP;