[FFmpeg-cvslog] swscale: more generic check for planar destination formats with alpha

Paul B Mahol git at videolan.org
Tue Jan 31 03:36:07 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 30 13:58:50 2012 +0000| [08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2] | committer: Ronald S. Bultje

swscale: more generic check for planar destination formats with alpha

Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2
---

 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



More information about the ffmpeg-cvslog mailing list