diff --git a/src/enc/webpenc.c b/src/enc/webpenc.c index 0cb83f12..ca85e0b8 100644 --- a/src/enc/webpenc.c +++ b/src/enc/webpenc.c @@ -326,7 +326,7 @@ int WebPEncode(const WebPConfig* config, WebPPicture* pic) { if (!config->lossless) { VP8Encoder* enc = NULL; - if (pic->y == NULL || pic->u == NULL || pic->v == NULL) { + if (pic->use_argb || pic->y == NULL || pic->u == NULL || pic->v == NULL) { // Make sure we have YUVA samples. if (config->preprocessing & 4) { #if WEBP_ENCODER_ABI_VERSION > 0x0204