]> granicus.if.org Git - libvpx/commitdiff
Fix incorrect subsampling used in VP9 non420 loopfilter.
authorAlexander Voronov <avoronov@graphics.cs.msu.ru>
Wed, 24 Sep 2014 13:01:09 +0000 (17:01 +0400)
committerAlexander Voronov <avoronov@graphics.cs.msu.ru>
Wed, 24 Sep 2014 13:01:09 +0000 (17:01 +0400)
Change-Id: Ia959e24b4676242c80a8867d2c39a6fee90f71a5

vp9/common/vp9_loopfilter.c

index b6597ff8addeac07db962f773313f7e60c469462..4d6d457ca9fc287a8b839e63e496b24745b82c33 100644 (file)
@@ -1155,8 +1155,8 @@ static void filter_block_plane_non420(VP9_COMMON *cm,
                                       int mi_row, int mi_col) {
   const int ss_x = plane->subsampling_x;
   const int ss_y = plane->subsampling_y;
-  const int row_step = 1 << ss_x;
-  const int col_step = 1 << ss_y;
+  const int row_step = 1 << ss_y;
+  const int col_step = 1 << ss_x;
   const int row_step_stride = cm->mi_stride * row_step;
   struct buf_2d *const dst = &plane->dst;
   uint8_t* const dst0 = dst->buf;