[FFmpeg-devel] [PATCH] swscale: fix conversion into yuva444p from non-alpha formats
Paul B Mahol
onemda at gmail.com
Sat Jan 28 04:12:29 CET 2012
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libswscale/swscale.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index d8861d6..22f4558 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
--
1.7.7
More information about the ffmpeg-devel
mailing list