|
|
@ -589,8 +589,8 @@ static int swScale(SwsContext *c, const uint8_t* src[], |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
assert(lumSrcPtr + vLumFilterSize - 1 < lumPixBuf + vLumBufSize*2); |
|
|
|
assert(lumSrcPtr + vLumFilterSize - 1 < lumPixBuf + vLumBufSize*2); |
|
|
|
assert(chrUSrcPtr + vChrFilterSize - 1 < chrUPixBuf + vChrBufSize*2); |
|
|
|
assert(chrUSrcPtr + vChrFilterSize - 1 < chrUPixBuf + vChrBufSize*2); |
|
|
|
if (c->yuv2packed1 && vLumFilterSize == 1 && vChrFilterSize == 2) { //unscaled RGB
|
|
|
|
if (c->yuv2packed1 && vLumFilterSize == 1 && vChrFilterSize <= 2) { //unscaled RGB
|
|
|
|
int chrAlpha = vChrFilter[2 * dstY + 1]; |
|
|
|
int chrAlpha = vChrFilterSize == 1 ? 0 : vChrFilter[2 * dstY + 1]; |
|
|
|
yuv2packed1(c, *lumSrcPtr, chrUSrcPtr, chrVSrcPtr, |
|
|
|
yuv2packed1(c, *lumSrcPtr, chrUSrcPtr, chrVSrcPtr, |
|
|
|
alpPixBuf ? *alpSrcPtr : NULL, |
|
|
|
alpPixBuf ? *alpSrcPtr : NULL, |
|
|
|
dest[0], dstW, chrAlpha, dstY); |
|
|
|
dest[0], dstW, chrAlpha, dstY); |
|
|
|