aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-12-02 18:14:53 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-12-02 18:14:53 +0000
commit3e16cde430349c0125343fbb41908848be940fe9 (patch)
tree9e95486e8ab7fff774c56299bc2408baf485ddf8
parent958a2b5d6b05e6e04bc6e7fb0118bfe611eb792c (diff)
downloadffmpeg-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
-rw-r--r--libavcodec/rv34.c2
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;