Commit 56bc7ef6 authored by Urvang Joshi's avatar Urvang Joshi

dr_prediction_z2: check that index into 'left' is valid.

For 'left' array indices -1 onwards are valid (left[-1] == above[-1] ==
the top-left reference pixel).
So, make sure that 'base2' is in that range too.

Change-Id: If5118d97d4ef85f6520363bd648bfe6948c1211f
parent 14b8112b
......@@ -798,6 +798,7 @@ static void dr_prediction_z2(uint8_t *dst, ptrdiff_t stride, int bs,
#endif // CONFIG_INTRA_INTERP
} else {
base2 = y >> 8;
assert(base2 >= -1);
shift2 = y & 0xFF;
#if CONFIG_INTRA_INTERP
val = intra_subpel_interp(base2, shift2, left, -1, bs - 1, filter_type);
......
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