diff --git a/src/enc/webpenc.c b/src/enc/webpenc.c index 090f14c5..dbc07065 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 (!WebPPictureSmartARGBToYUVA(pic)) {