[Ffmpeg-cvslog] r8702 - trunk/libavcodec/vc1.c

kostya subversion
Tue Apr 10 07:31:22 CEST 2007


Author: kostya
Date: Tue Apr 10 07:31:22 2007
New Revision: 8702

Modified:
   trunk/libavcodec/vc1.c

Log:
Set C predictor to zero if unavailable (should fix B-frame border artifacts)

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Tue Apr 10 07:31:22 2007
@@ -2318,6 +2318,7 @@ static inline void vc1_pred_b_mv(VC1Cont
         off = (s->mb_x == (s->mb_width - 1)) ? -2 : 2;
         B = s->current_picture.motion_val[0][xy - wrap*2 + off];
 
+        if(!s->mb_x) C[0] = C[1] = 0;
         if(!s->first_slice_line) { // predictor A is not out of bounds
             if(s->mb_width == 1) {
                 px = A[0];
@@ -2395,6 +2396,7 @@ static inline void vc1_pred_b_mv(VC1Cont
         off = (s->mb_x == (s->mb_width - 1)) ? -2 : 2;
         B = s->current_picture.motion_val[1][xy - wrap*2 + off];
 
+        if(!s->mb_x) C[0] = C[1] = 0;
         if(!s->first_slice_line) { // predictor A is not out of bounds
             if(s->mb_width == 1) {
                 px = A[0];




More information about the ffmpeg-cvslog mailing list