You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
swscale: Fix PAL8 input with alpha
Fixes Ticket2158 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user