]> granicus.if.org Git - libvpx/commitdiff
Fix typo ('weight' instead of 'width').
authorRonald S. Bultje <rbultje@google.com>
Mon, 17 Jun 2013 20:56:11 +0000 (13:56 -0700)
committerRonald S. Bultje <rbultje@google.com>
Mon, 17 Jun 2013 20:56:24 +0000 (13:56 -0700)
Change-Id: I5d3944051d091b4bf3eb13e2a30132d34203ef74

vp9/encoder/vp9_variance.h

index aaa43ef82f6a8da6429258d1b8ca5820fe33c35c..38808d7be91123ab8017d5531e11b10626f0231e 100644 (file)
@@ -86,18 +86,18 @@ typedef struct vp9_variance_vtable {
     vp9_sad_multi_d_fn_t       sdx4df;
 } vp9_variance_fn_ptr_t;
 
-static void comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int weight,
+static void comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int width,
                           int height, uint8_t *ref, int ref_stride) {
   int i, j;
 
   for (i = 0; i < height; i++) {
-    for (j = 0; j < weight; j++) {
+    for (j = 0; j < width; j++) {
       int tmp;
       tmp = pred[j] + ref[j];
       comp_pred[j] = (tmp + 1) >> 1;
     }
-    comp_pred += weight;
-    pred += weight;
+    comp_pred += width;
+    pred += width;
     ref += ref_stride;
   }
 }