[FFmpeg-cvslog] r19255 - trunk/libavcodec/vc1dec.c

kostya subversion
Tue Jun 23 09:41:39 CEST 2009


Author: kostya
Date: Tue Jun 23 09:41:38 2009
New Revision: 19255

Log:
Edge emulation should be used in B-frame MC in mspel mode with
mv_x < 1 or mv_y < 1.

Modified:
   trunk/libavcodec/vc1dec.c

Modified: trunk/libavcodec/vc1dec.c
==============================================================================
--- trunk/libavcodec/vc1dec.c	Tue Jun 23 01:09:34 2009	(r19254)
+++ trunk/libavcodec/vc1dec.c	Tue Jun 23 09:41:38 2009	(r19255)
@@ -860,8 +860,8 @@ static void vc1_interp_mc(VC1Context *v)
     }
 
     if(v->rangeredfrm
-       || (unsigned)src_x > s->h_edge_pos - (mx&3) - 16 - s->mspel*3
-       || (unsigned)src_y > s->v_edge_pos - (my&3) - 16 - s->mspel*3){
+       || (unsigned)(src_x - s->mspel) > s->h_edge_pos - (mx&3) - 16 - s->mspel*3
+       || (unsigned)(src_y - s->mspel) > s->v_edge_pos - (my&3) - 16 - s->mspel*3){
         uint8_t *uvbuf= s->edge_emu_buffer + 19 * s->linesize;
 
         srcY -= s->mspel * (1 + s->linesize);



More information about the ffmpeg-cvslog mailing list