mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
sws: fix handling of big endian alpha
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1322,6 +1322,10 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
|
||||
break;
|
||||
}
|
||||
if (c->alpPixBuf) {
|
||||
if (is16BPS(srcFormat) || isNBPS(srcFormat)) {
|
||||
if (HAVE_BIGENDIAN == !isBE(srcFormat))
|
||||
c->alpToYV12 = bswap16Y_c;
|
||||
}
|
||||
switch (srcFormat) {
|
||||
case AV_PIX_FMT_RGBA64LE:
|
||||
case AV_PIX_FMT_RGBA64BE: c->alpToYV12 = rgba64ToA_c; break;
|
||||
|
||||
Reference in New Issue
Block a user