Commit 08d8029e authored by Paul B Mahol's avatar Paul B Mahol Committed by Ronald S. Bultje

swscale: more generic check for planar destination formats with alpha

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent fe47ea8f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment