diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-30 13:58:50 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-30 07:37:13 -0800 |
commit | 08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2 (patch) | |
tree | 675e78aae46462837cb85f72bd2ae074619ce55e | |
parent | fe47ea8f7a5575ce9bb63907c1f0a996de4a7b0d (diff) | |
download | ffmpeg-08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2.tar.gz |
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>
-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 |