swscale: cleanup unused code
[ffmpeg.git] / libswscale / input.c
index 16314b6..eed0f49 100644 (file)
@@ -1482,7 +1482,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
         c->lumToYV12 = p010BEToY_c;
         break;
     }
-    if (c->alpPixBuf) {
+    if (c->needAlpha) {
         if (is16BPS(srcFormat) || isNBPS(srcFormat)) {
             if (HAVE_BIGENDIAN == !isBE(srcFormat))
                 c->alpToYV12 = bswap16Y_c;