[Mplayer-cvslog] CVS: main/postproc swscale.c,1.9,1.10

Michael Niedermayer michael at mplayer.dev.hu
Fri Oct 19 02:21:09 CEST 2001


Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv26963

Modified Files:
	swscale.c 
Log Message:
fixed a bug which caused horizontal lines


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- swscale.c	18 Oct 2001 22:27:13 -0000	1.9
+++ swscale.c	19 Oct 2001 00:21:07 -0000	1.10
@@ -254,9 +254,9 @@
 	// points to the dst Pixels center in the source (0 is the center of pixel 0,0 in src)
     int srcuvpos= s_srcypos + s_yinc/2 - 0x8000;
     int y1=(srcuvpos + 0x1FFFF)>>17; // first chrominance source line number below the dst line
-    int yalpha=(s_srcypos&0xFFFF)>>7;
+    int yalpha=((s_srcypos-1)&0xFFFF)>>7;
     int yalpha1=yalpha^511;
-    int uvalpha=(srcuvpos&0x1FFFF)>>8;
+    int uvalpha=((srcuvpos-1)&0x1FFFF)>>8;
     int uvalpha1=uvalpha^511;
     uint16_t *buf0=pix_buf_y[y0&1];		// top line of the interpolated slice
     uint16_t *buf1=pix_buf_y[((y0+1)&1)];	// bottom line of the interpolated slice




More information about the MPlayer-cvslog mailing list