Correct a loop restoration buffer size
On subsampled planes, the frame is narrower but the padding by
RESTORATION_EXTRA_HORZ on each side is the same width as usual.
Change-Id: Id68c0dd674efaa769412825b119ae5ebe56548ad
diff --git a/av1/common/alloccommon.c b/av1/common/alloccommon.c
index 30ccb08..4f1ad49 100644
--- a/av1/common/alloccommon.c
+++ b/av1/common/alloccommon.c
@@ -150,7 +150,7 @@
const int is_uv = p > 0;
const int ss_x = is_uv && cm->subsampling_x;
- const int plane_w = (frame_w + 2 * RESTORATION_EXTRA_HORZ + ss_x) >> ss_x;
+ const int plane_w = ((frame_w + ss_x) >> ss_x) + 2 * RESTORATION_EXTRA_HORZ;
const int align_bits = 5; // align for efficiency
const int stride = ALIGN_POWER_OF_TWO(plane_w, align_bits);