diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-28 03:12:29 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-28 17:37:08 +0100 |
commit | 762311ff94e78d6f6cdd344882123210c1270757 (patch) | |
tree | af53e74308a4a138cc5e5e888d935a742b4ae7d4 /libswscale | |
parent | 7bab43f29c0ee60051b52e3ed62d3b93e42d7e78 (diff) |
swscale: fix conversion into yuva444p from non-alpha formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-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 d8861d6c04..22f45587ae 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2804,7 +2804,7 @@ static int swScale(SwsContext *c, const uint8_t* src[], } } - if ((dstFormat == PIX_FMT_YUVA420P) && !alpPixBuf) + if (isPlanarYUV(dstFormat) && isALPHA(dstFormat) && !alpPixBuf) fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255); #if HAVE_MMX2 |