Mercurial > libavcodec.hg
comparison rv34.c @ 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 | 24a49d3fdc3b |
comparison
equal
deleted
inserted
replaced
8244:3f3d653fb46d | 8245:7e6ca1be9e40 |
---|---|
1098 int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx]; | 1098 int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx]; |
1099 for(j = 0; j < 16; j += 8){ | 1099 for(j = 0; j < 16; j += 8){ |
1100 for(i = 0; i < 2; i++){ | 1100 for(i = 0; i < 2; i++){ |
1101 if(is_mv_diff_gt_3(motion_val + i, 1)) | 1101 if(is_mv_diff_gt_3(motion_val + i, 1)) |
1102 vmvmask |= 0x11 << (j + i*2); | 1102 vmvmask |= 0x11 << (j + i*2); |
1103 if(is_mv_diff_gt_3(motion_val + i, s->b8_stride)) | 1103 if((j || s->mb_y) && is_mv_diff_gt_3(motion_val + i, s->b8_stride)) |
1104 hmvmask |= 0x03 << (j + i*2); | 1104 hmvmask |= 0x03 << (j + i*2); |
1105 } | 1105 } |
1106 motion_val += s->b8_stride; | 1106 motion_val += s->b8_stride; |
1107 } | 1107 } |
1108 if(s->first_slice_line) | 1108 if(s->first_slice_line) |