1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

swscale: more generic check for planar destination formats with alpha

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Paul B Mahol 2012-01-30 13:58:50 +00:00 committed by Ronald S. Bultje
parent fe47ea8f7a
commit 08d8029ea8

View File

@ -2672,7 +2672,7 @@ static int swScale(SwsContext *c, const uint8_t* src[],
}
}
if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf)
if (isPlanar(dstFormat) && isALPHA(dstFormat) && !alpPixBuf)
fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);
#if HAVE_MMX2