Mercurial > libavcodec.hg
changeset 9168:5de43b1eb9f4 libavcodec
Correct MV prediction for B-frame blocks in RV4 decoder
author | kostya |
---|---|
date | Sun, 15 Mar 2009 08:21:42 +0000 |
parents | fd8b4aa6e493 |
children | b0230a690eda |
files | rv34.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rv34.c Sat Mar 14 19:12:20 2009 +0000 +++ b/rv34.c Sun Mar 15 08:21:42 2009 +0000 @@ -533,7 +533,7 @@ 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;