Commit 6acb300f authored by Luc Trudeau's avatar Luc Trudeau
Browse files

[CfL] Fix subsampling overflow in HBD 4:4:0

BUG=aomedia:994

Change-Id: I0fa9d48487256655798dbdd64acad523e84557c6
parent 0dffa176
......@@ -397,8 +397,7 @@ static void cfl_luma_subsampling_440_hbd(const uint16_t *input,
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment