diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-12-02 18:14:53 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-12-02 18:14:53 +0000 |
commit | 3e16cde430349c0125343fbb41908848be940fe9 (patch) | |
tree | 9e95486e8ab7fff774c56299bc2408baf485ddf8 /libavcodec/rv34.c | |
parent | 958a2b5d6b05e6e04bc6e7fb0118bfe611eb792c (diff) | |
download | ffmpeg-3e16cde430349c0125343fbb41908848be940fe9.tar.gz |
Fix reading out of buffer during RV30/40 deblock mask calculation
Originally committed as revision 15983 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index ecba8d21a9..463594320c 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -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; |