projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee97982
)
swscale: Fix PAL8 input with alpha
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 26 Jun 2013 13:07:13 +0000
(15:07 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 26 Jun 2013 13:14:00 +0000
(15:14 +0200)
Fixes Ticket2158
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale_internal.h
patch
|
blob
|
history
diff --git
a/libswscale/swscale_internal.h
b/libswscale/swscale_internal.h
index
3d5d2af
..
2241ba5
100644
(file)
--- 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;
}