From 034b31df2cd05751f7242887192292777f779bbd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 26 Jun 2013 15:07:13 +0200 Subject: swscale: Fix PAL8 input with alpha Fixes Ticket2158 Signed-off-by: Michael Niedermayer --- libswscale/swscale_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libswscale/swscale_internal.h') diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 3d5d2affd8..2241ba5235 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; } -- cgit v1.2.3