Fixing invalid block width/height calculation.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 15 Jan 2014 01:53:32 +0000 (17:53 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 15 Jan 2014 01:53:32 +0000 (17:53 -0800)
Change-Id: Ieaeb53902ce0ffd5b1b27a92583e98abfa791433

vp9/encoder/vp9_rdopt.c

index b46e808914a04245a581ef68f9a59a57449f61c2..359a29bfab6e3e5f18a51fbc79557a3f7ccd67c1 100644 (file)
@@ -464,8 +464,8 @@ static void model_rd_for_sb_y_tx(VP9_COMP *cpi, BLOCK_SIZE bsize,
   BLOCK_SIZE bs;
   struct macroblock_plane *const p = &x->plane[0];
   struct macroblockd_plane *const pd = &xd->plane[0];
-  const int width = 4 << num_4x4_blocks_wide_lookup[bsize];
-  const int height = 4 << num_4x4_blocks_high_lookup[bsize];
+  const int width = 4 * num_4x4_blocks_wide_lookup[bsize];
+  const int height = 4 * num_4x4_blocks_high_lookup[bsize];
   int rate_sum = 0;
   int64_t dist_sum = 0;
   const int t = 4 << tx_size;