diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-30 17:58:50 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-30 19:37:13 +0400 |
commit | 08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2 (patch) | |
tree | 675e78aae46462837cb85f72bd2ae074619ce55e /libswscale/swscale.c | |
parent | fe47ea8f7a5575ce9bb63907c1f0a996de4a7b0d (diff) |
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>
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 05ee8a4d91..eaec1dd82c 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 |