diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2014-01-14 17:53:32 -0800 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2014-01-14 17:53:32 -0800 |
commit | 433e5ea0e8817b1066c59757727fb2a0d6f12fd6 (patch) | |
tree | 53f00f7374f016fc60dc3e52177c64f6c327f1a0 /vp9 | |
parent | f13b3d1e08ef4d5842e283c1113f8d67f3960b37 (diff) | |
download | libvpx-433e5ea0e8817b1066c59757727fb2a0d6f12fd6.tar libvpx-433e5ea0e8817b1066c59757727fb2a0d6f12fd6.tar.gz libvpx-433e5ea0e8817b1066c59757727fb2a0d6f12fd6.tar.bz2 libvpx-433e5ea0e8817b1066c59757727fb2a0d6f12fd6.zip |
Fixing invalid block width/height calculation.
Change-Id: Ieaeb53902ce0ffd5b1b27a92583e98abfa791433
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_rdopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index b46e80891..359a29bfa 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -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; |