Commit 43a059de authored by Adrian Grange's avatar Adrian Grange Committed by On2 (Google) Code Review
Browse files

Merge "Fix out of bounds read in update_mbgraph_frame_stats" into experimental

parents ba1a6619 95b4cf05
...@@ -331,6 +331,7 @@ static void update_mbgraph_frame_stats ...@@ -331,6 +331,7 @@ static void update_mbgraph_frame_stats
int mb_col, mb_row, offset = 0; int mb_col, mb_row, offset = 0;
int mb_y_offset = 0, arf_y_offset = 0, gld_y_offset = 0; int mb_y_offset = 0, arf_y_offset = 0, gld_y_offset = 0;
int_mv arf_top_mv, gld_top_mv; int_mv arf_top_mv, gld_top_mv;
MODE_INFO mi_local;
// Set up limit values for motion vectors to prevent them extending outside the UMV borders // Set up limit values for motion vectors to prevent them extending outside the UMV borders
arf_top_mv.as_int = 0; arf_top_mv.as_int = 0;
...@@ -341,6 +342,7 @@ static void update_mbgraph_frame_stats ...@@ -341,6 +342,7 @@ static void update_mbgraph_frame_stats
xd->dst.y_stride = buf->y_stride; xd->dst.y_stride = buf->y_stride;
xd->pre.y_stride = buf->y_stride; xd->pre.y_stride = buf->y_stride;
xd->dst.uv_stride = buf->uv_stride; xd->dst.uv_stride = buf->uv_stride;
xd->mode_info_context = &mi_local;
for (mb_row = 0; mb_row < cm->mb_rows; mb_row++) for (mb_row = 0; mb_row < cm->mb_rows; mb_row++)
{ {
......
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