Module: libav Branch: master Commit: 08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2
Author: Paul B Mahol <[email protected]> Committer: Ronald S. Bultje <[email protected]> Date: Mon Jan 30 13:58:50 2012 +0000 swscale: more generic check for planar destination formats with alpha Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Ronald S. Bultje <[email protected]> --- libswscale/swscale.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 05ee8a4..eaec1dd 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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 _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
