Mercurial > libavcodec.hg
changeset 8245:7e6ca1be9e40 libavcodec
Fix reading out of buffer during RV30/40 deblock mask calculation
author | kostya |
---|---|
date | Tue, 02 Dec 2008 18:14:53 +0000 |
parents | 3f3d653fb46d |
children | 75ae6859ac73 |
files | rv34.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rv34.c Tue Dec 02 18:12:48 2008 +0000 +++ b/rv34.c Tue Dec 02 18:14:53 2008 +0000 @@ -1100,7 +1100,7 @@ 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;