]> granicus.if.org Git - libvpx/commitdiff
Fix width/height switch-up in U/V SB quantize code.
authorRonald S. Bultje <rbultje@google.com>
Sat, 13 Apr 2013 19:40:34 +0000 (12:40 -0700)
committerRonald S. Bultje <rbultje@google.com>
Mon, 15 Apr 2013 16:58:27 +0000 (09:58 -0700)
Change-Id: I697514efd6024e1b4153bbde58ae5e323b030981

vp9/encoder/vp9_quantize.c

index 83fa1dafd5248cbdc759e969027eccc52259c3e7..1401bd64e5909b0ab9bf5adf02e07fef6bd87d59 100644 (file)
@@ -477,7 +477,7 @@ void vp9_quantize_sbuv_32x32(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize) {
 
 void vp9_quantize_sbuv_16x16(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize) {
   const int bwl = mb_width_log2(bsize);
-  const int bhl = mb_width_log2(bsize);
+  const int bhl = mb_height_log2(bsize);
   const int uoff = 16 << (bhl + bwl);
   int i;
 
@@ -487,7 +487,7 @@ void vp9_quantize_sbuv_16x16(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize) {
 
 void vp9_quantize_sbuv_8x8(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize) {
   const int bwl = mb_width_log2(bsize);
-  const int bhl = mb_width_log2(bsize);
+  const int bhl = mb_height_log2(bsize);
   const int uoff = 16 << (bhl + bwl);
   int i;
 
@@ -497,7 +497,7 @@ void vp9_quantize_sbuv_8x8(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize) {
 
 void vp9_quantize_sbuv_4x4(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize) {
   const int bwl = mb_width_log2(bsize);
-  const int bhl = mb_width_log2(bsize);
+  const int bhl = mb_height_log2(bsize);
   const int uoff = 16 << (bhl + bwl);
   int i;