last line messed up in Y800 bugfix
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2002 20:32:42 +0000 (20:32 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2002 20:32:42 +0000 (20:32 +0000)
Originally committed as revision 6616 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale_template.c

index 709582446671050ec388abd9373e3fb9ed47c9fd..accbc9710edaf39e46fac3ad884ebb705589c496 100644 (file)
@@ -2557,9 +2557,9 @@ i--;
            {
                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,