]> granicus.if.org Git - libvpx/commitdiff
Fix the variable naming in encode_block
authorJingning Han <jingning@google.com>
Wed, 6 Nov 2013 19:34:06 +0000 (11:34 -0800)
committerJingning Han <jingning@google.com>
Thu, 7 Nov 2013 16:59:14 +0000 (08:59 -0800)
The term x represents macroblock pointer across encode_block. Change
the two local variable names to avoid confusion.

Change-Id: Ic732e73023525d673c0a678ed2708ac1edf5a3f9

vp9/encoder/vp9_encodemb.c

index e52e8ec1e2d7211229ad0c63c5f81107ebf87d38..75ed8eab7577ebbeeccd28e3f4a41a6f77ef6d41 100644 (file)
@@ -430,11 +430,11 @@ static void encode_block(int plane, int block, BLOCK_SIZE plane_bsize,
   // TODO(jingning): per transformed block zero forcing only enabled for
   // luma component. will integrate chroma components as well.
   if (x->zcoeff_blk[tx_size][block] && plane == 0) {
-    int x, y;
+    int i, j;
     pd->eobs[block] = 0;
-    txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &x, &y);
-    ctx->ta[plane][x] = 0;
-    ctx->tl[plane][y] = 0;
+    txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &i, &j);
+    ctx->ta[plane][i] = 0;
+    ctx->tl[plane][j] = 0;
     return;
   }