mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
vc1dec: prevent v_edge_pos from becoming negative.
Fixes assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b6a7f66f93
commit
bde6f6eadc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user