Skip to content
Snippets Groups Projects
Commit a340cfef authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

swscale/input: Fix alpha bswap for set readAlpPlanar

parent d736b52a
No related branches found
No related tags found
No related merge requests found
...@@ -1490,7 +1490,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) ...@@ -1490,7 +1490,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
} }
if (c->needAlpha) { if (c->needAlpha) {
if (is16BPS(srcFormat) || isNBPS(srcFormat)) { if (is16BPS(srcFormat) || isNBPS(srcFormat)) {
if (HAVE_BIGENDIAN == !isBE(srcFormat)) if (HAVE_BIGENDIAN == !isBE(srcFormat) && !c->readAlpPlanar)
c->alpToYV12 = bswap16Y_c; c->alpToYV12 = bswap16Y_c;
} }
switch (srcFormat) { switch (srcFormat) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment