Commit a4512cdb authored by kostya's avatar kostya

Fix reading out of buffer during RV30/40 deblock mask calculation

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15983 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9576c85c
......@@ -1100,7 +1100,7 @@ static int rv34_set_deblock_coef(RV34DecContext *r)
for(i = 0; i < 2; i++){
if(is_mv_diff_gt_3(motion_val + i, 1))
vmvmask |= 0x11 << (j + i*2);
if(is_mv_diff_gt_3(motion_val + i, s->b8_stride))
if((j || s->mb_y) && is_mv_diff_gt_3(motion_val + i, s->b8_stride))
hmvmask |= 0x03 << (j + i*2);
}
motion_val += s->b8_stride;
......
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