From eafd842a3ebc99a32fca3f741089d49957cbccb4 Mon Sep 17 00:00:00 2001 From: Alexander Voronov Date: Wed, 24 Sep 2014 17:01:09 +0400 Subject: [PATCH] Fix incorrect subsampling used in VP9 non420 loopfilter. Change-Id: Ia959e24b4676242c80a8867d2c39a6fee90f71a5 --- vp9/common/vp9_loopfilter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp9/common/vp9_loopfilter.c b/vp9/common/vp9_loopfilter.c index b6597ff8a..4d6d457ca 100644 --- a/vp9/common/vp9_loopfilter.c +++ b/vp9/common/vp9_loopfilter.c @@ -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;