This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
swscale: check flags instead of nb_components to find if pixel format have alpha
Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.2
Paul B Mahol
12 years ago
parent
7003d650b0
commit
d07b0d9927
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libswscale/swscale_internal.h
+ 1
- 1
libswscale/swscale_internal.h
View File
@@ -688,7 +688,7 @@ static av_always_inline int isALPHA(enum AVPixelFormat pix_fmt)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
av_assert0(desc);
return desc->
nb_components == 2 || desc->nb_components == 4
;
return desc->
flags & PIX_FMT_ALPHA
;
}
#if 1
Write
Preview
Loading…
Cancel
Save