[FFmpeg-cvslog] swscale: Fix PAL8 input with alpha

Michael Niedermayer git at videolan.org
Wed Jun 26 15:15:12 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 26 15:07:13 2013 +0200| [034b31df2cd05751f7242887192292777f779bbd] | committer: Michael Niedermayer

swscale: Fix PAL8 input with alpha

Fixes Ticket2158

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libswscale/swscale_internal.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 3d5d2af..2241ba5 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -742,6 +742,8 @@ static av_always_inline int isALPHA(enum AVPixelFormat pix_fmt)
 {
     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
     av_assert0(desc);
+    if (pix_fmt == AV_PIX_FMT_PAL8)
+        return 1;
     return desc->flags & AV_PIX_FMT_FLAG_ALPHA;
 }
 



More information about the ffmpeg-cvslog mailing list