diff --git a/examples/jpegdec.c b/examples/jpegdec.c index c06da8dc..5411e6e0 100644 --- a/examples/jpegdec.c +++ b/examples/jpegdec.c @@ -272,6 +272,7 @@ int ReadJPEG(FILE* in_file, WebPPicture* const pic, Metadata* const metadata) { // WebP conversion. pic->width = width; pic->height = height; + pic->use_argb = 1; // store raw RGB samples ok = WebPPictureImportRGB(pic, rgb, stride); if (!ok) goto Error;