Commit a1c3d667 authored by kostya's avatar kostya

Correct MV prediction for B-frame blocks in RV4 decoder

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17974 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d6345dd7
...@@ -533,7 +533,7 @@ static void rv34_pred_mv_b(RV34DecContext *r, int block_type, int dir) ...@@ -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]; B[1] = cur_pic->motion_val[dir][mv_pos - s->b8_stride][1];
has_B = 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[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]; C[1] = cur_pic->motion_val[dir][mv_pos - s->b8_stride + 2][1];
has_C = 1; has_C = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment