Commit f2e7b938 authored by Debargha Mukherjee's avatar Debargha Mukherjee
Browse files

Fix a out-of-bounds access issue

BUG=aomedia:489

Change-Id: Icff4dc0b5aeb6f674044382307469d8a406080cb
parent cfc12f38
...@@ -11315,10 +11315,12 @@ PALETTE_EXIT: ...@@ -11315,10 +11315,12 @@ PALETTE_EXIT:
cm->allow_high_precision_mv, cm->allow_high_precision_mv,
bsize, mi_col, mi_row, 0) bsize, mi_col, mi_row, 0)
.as_int; .as_int;
zeromv[1].as_int = gm_get_motion_vector(&cm->global_motion[refs[1]], zeromv[1].as_int = (refs[1] != NONE_FRAME)
cm->allow_high_precision_mv, ? gm_get_motion_vector(&cm->global_motion[refs[1]],
bsize, mi_col, mi_row, 0) cm->allow_high_precision_mv,
.as_int; bsize, mi_col, mi_row, 0)
.as_int
: 0;
lower_mv_precision(&zeromv[0].as_mv, cm->allow_high_precision_mv); lower_mv_precision(&zeromv[0].as_mv, cm->allow_high_precision_mv);
lower_mv_precision(&zeromv[1].as_mv, cm->allow_high_precision_mv); lower_mv_precision(&zeromv[1].as_mv, cm->allow_high_precision_mv);
#else #else
......
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