[Mplayer-cvslog] CVS: main/postproc swscale_template.c,1.85,1.86

Michael Niedermayer michael at mplayerhq.hu
Sun Jun 30 22:32:50 CEST 2002


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

Modified Files:
	swscale_template.c 
Log Message:
last line messed up in Y800 bugfix


Index: swscale_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_template.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- swscale_template.c	27 Jun 2002 18:00:47 -0000	1.85
+++ swscale_template.c	30 Jun 2002 20:32:42 -0000	1.86
@@ -2557,9 +2557,9 @@
 	    {
 		int16_t **lumSrcPtr= lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize;
 		int16_t **chrSrcPtr= chrPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize;
-		if(isPlanarYUV(dstFormat)) //YV12
+		if(isPlanarYUV(dstFormat) || isGray(dstFormat)) //YV12
 		{
-			if(dstY&1) uDest=vDest= NULL;
+			if((dstY&1) || isGray(dstFormat)) uDest=vDest= NULL;
 			yuv2yuvXinC(
 				vLumFilter+dstY*vLumFilterSize   , lumSrcPtr, vLumFilterSize,
 				vChrFilter+chrDstY*vChrFilterSize, chrSrcPtr, vChrFilterSize,




More information about the MPlayer-cvslog mailing list