Browse Source

Correct MV prediction for B-frame blocks in RV4 decoder

Originally committed as revision 17974 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Kostya Shishkov 17 years ago
parent
commit
0304109df6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/rv34.c

+ 1
- 1
libavcodec/rv34.c View File

@@ -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;


Loading…
Cancel
Save