[FFmpeg-soc] [soc]: r1242 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Wed Aug 29 19:24:11 CEST 2007


Author: kostya
Date: Wed Aug 29 19:24:11 2007
New Revision: 1242

Log:
Adjust motion vector prediction so it's correct for RV30 too

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Wed Aug 29 19:24:11 2007
@@ -892,7 +892,7 @@ static void rv40_pred_mv(RV40DecContext 
     memset(C, 0, sizeof(C));
     no_A = s->mb_x < 1 || (s->first_slice_line && s->mb_x == s->resync_mb_x);
     no_B = s->first_slice_line;
-    no_C = s->first_slice_line || (s->mb_x + 1) == s->mb_width;
+    no_C = (s->first_slice_line && (s->mb_x + 1) != s->resync_mb_x) || (s->mb_x + 1) == s->mb_width;
     switch(block_type){
     case RV40_MB_P_16x16:
     case RV40_MB_P_MIX16x16:
@@ -951,7 +951,7 @@ static void rv40_pred_mv(RV40DecContext 
         B[1] = A[1];
     }
     if(no_C){
-        if(no_B || no_A){
+        if(no_B || (no_A && !r->rv30)){
             C[0] = A[0];
             C[1] = A[1];
         }else{



More information about the FFmpeg-soc mailing list