last line messed up in Y800 bugfix

Originally committed as revision 6616 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
pull/126/head
Michael Niedermayer 23 years ago
parent a1ce46cf52
commit f5b58629fe
  1. 4
      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,

Loading…
Cancel
Save