[SCM] libav/experimental: Correct MV prediction for B-frame blocks in RV4 decoder

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:41:21 UTC 2013


The following commit has been merged in the experimental branch:
commit 0304109df620e95e33edf43ba47ddf7bdccd7620
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Sun Mar 15 08:21:42 2009 +0000

    Correct MV prediction for B-frame blocks in RV4 decoder
    
    Originally committed as revision 17974 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index ee10528..6603641 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list