From f5b58629fe4fe5350f8c103ea4b1046c333eae25 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 30 Jun 2002 20:32:42 +0000 Subject: [PATCH] last line messed up in Y800 bugfix Originally committed as revision 6616 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/swscale_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index 7095824466..accbc9710e 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -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,