valgrind found motion vectors which exceeded frame boundaries
Bug introduced in I02d034c70cd97b65025d59dd67c695e1db529f0b Change-Id: Ifb74ab659f3b3cf5f5b95046bacffb202d5b4d64
This commit is contained in:
Родитель
488ba1ab9c
Коммит
818b10396d
|
@ -293,26 +293,24 @@ static void decode_split_mv(vp8_reader *const bc, MODE_INFO *mi,
|
|||
blockmv.as_mv.row += best_mv.as_mv.row;
|
||||
blockmv.as_mv.col = read_mvcomponent(bc, &mvc[1]) << 1;
|
||||
blockmv.as_mv.col += best_mv.as_mv.col;
|
||||
|
||||
mbmi->need_to_clamp_mvs |= vp8_check_mv_bounds(&blockmv,
|
||||
mb_to_left_edge,
|
||||
mb_to_right_edge,
|
||||
mb_to_top_edge,
|
||||
mb_to_bottom_edge);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
blockmv.as_int = abovemv.as_int;
|
||||
mbmi->need_to_clamp_mvs |= above_mb->mbmi.need_to_clamp_mvs;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
blockmv.as_int = leftmv.as_int;
|
||||
mbmi->need_to_clamp_mvs |= left_mb->mbmi.need_to_clamp_mvs;
|
||||
}
|
||||
|
||||
mbmi->need_to_clamp_mvs |= vp8_check_mv_bounds(&blockmv,
|
||||
mb_to_left_edge,
|
||||
mb_to_right_edge,
|
||||
mb_to_top_edge,
|
||||
mb_to_bottom_edge);
|
||||
|
||||
{
|
||||
/* Fill (uniform) modes, mvs of jth subset.
|
||||
Must do it here because ensuing subsets can
|
||||
|
|
Загрузка…
Ссылка в новой задаче