[CfL] Fix subsampling overflow in HBD 4:4:0
BUG=aomedia:994
Change-Id: I0fa9d48487256655798dbdd64acad523e84557c6
diff --git a/av1/common/cfl.c b/av1/common/cfl.c
index 1f8f572..ebb4972 100644
--- a/av1/common/cfl.c
+++ b/av1/common/cfl.c
@@ -397,8 +397,7 @@
int width, int height) {
for (int j = 0; j < height; j++) {
for (int i = 0; i < width; i++) {
- int top = i << 1;
- output_q3[i] = (input[top] + input[top + input_stride]) << 2;
+ output_q3[i] = (input[i] + input[i + input_stride]) << 2;
}
input += input_stride << 1;
output_q3 += MAX_SB_SIZE;