aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-03-15 08:21:42 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-03-15 08:21:42 +0000
commit0304109df620e95e33edf43ba47ddf7bdccd7620 (patch)
treef707b75adabc96a2b87fc59802101dff48144cdd
parent3d45a83a593eb8f88917db927ae97fdbf0895993 (diff)
downloadffmpeg-0304109df620e95e33edf43ba47ddf7bdccd7620.tar.gz
Correct MV prediction for B-frame blocks in RV4 decoder
Originally committed as revision 17974 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 ee105280b3..66036414d5 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -533,7 +533,7 @@ static void rv34_pred_mv_b(RV34DecContext *r, int block_type, int dir)
B[1] = cur_pic->motion_val[dir][mv_pos - s->b8_stride][1];
has_B = 1;
}
- if((r->avail_cache[5-2] & type) & mask){
+ if(r->avail_cache[5-4] && (r->avail_cache[5-2] & type) & mask){
C[0] = cur_pic->motion_val[dir][mv_pos - s->b8_stride + 2][0];
C[1] = cur_pic->motion_val[dir][mv_pos - s->b8_stride + 2][1];
has_C = 1;