Commit bde6f6ea authored by Michael Niedermayer's avatar Michael Niedermayer

vc1dec: prevent v_edge_pos from becoming negative.

Fixes assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b6a7f66f
......@@ -981,7 +981,8 @@ static void vc1_mc_4mv_chroma4(VC1Context *v)
uvmy_field[i] = (uvmy_field[i] & 3) << 1;
if (fieldmv && !(uvsrc_y & 1))
v_edge_pos--;
v_edge_pos = (s->v_edge_pos >> 1) - 1;
if (fieldmv && (uvsrc_y & 1) && uvsrc_y < 2)
uvsrc_y--;
if ((v->mv_mode == MV_PMODE_INTENSITY_COMP)
......
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