swscale/input: Fix alpha bswap for set readAlpPlanar
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Nov 2016 22:37:29 +0000 (23:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Nov 2016 23:33:12 +0000 (00:33 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/input.c

index 14ab5ab..62480c2 100644 (file)
@@ -1490,7 +1490,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
     }
     if (c->needAlpha) {
         if (is16BPS(srcFormat) || isNBPS(srcFormat)) {
-            if (HAVE_BIGENDIAN == !isBE(srcFormat))
+            if (HAVE_BIGENDIAN == !isBE(srcFormat) && !c->readAlpPlanar)
                 c->alpToYV12 = bswap16Y_c;
         }
         switch (srcFormat) {