Commit 034b31df authored by Michael Niedermayer's avatar Michael Niedermayer

swscale: Fix PAL8 input with alpha

Fixes Ticket2158
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ee979824
...@@ -742,6 +742,8 @@ static av_always_inline int isALPHA(enum AVPixelFormat pix_fmt) ...@@ -742,6 +742,8 @@ static av_always_inline int isALPHA(enum AVPixelFormat pix_fmt)
{ {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
av_assert0(desc); av_assert0(desc);
if (pix_fmt == AV_PIX_FMT_PAL8)
return 1;
return desc->flags & AV_PIX_FMT_FLAG_ALPHA; return desc->flags & AV_PIX_FMT_FLAG_ALPHA;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment