shithub: libvpx

Download patch

ref: eafd842a3ebc99a32fca3f741089d49957cbccb4
parent: 8751e49a6fdae984a2581177d7a30c2d00538c79
author: Alexander Voronov <avoronov@graphics.cs.msu.ru>
date: Wed Sep 24 13:01:09 EDT 2014

Fix incorrect subsampling used in VP9 non420 loopfilter.

Change-Id: Ia959e24b4676242c80a8867d2c39a6fee90f71a5

--- a/vp9/common/vp9_loopfilter.c
+++ b/vp9/common/vp9_loopfilter.c
@@ -1155,8 +1155,8 @@
                                       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;