mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
fix bug due to overzealous check in WebPPictureYUVAToARGB()
This tests prevented views to be converted to ARGB https://code.google.com/p/webp/issues/detail?id=178 Change-Id: I5ba66da2791e6f1d2bfd8c55b5fffe6955263374
This commit is contained in:
@ -888,8 +888,7 @@ int WebPPictureImportBGRX(WebPPicture* picture,
|
||||
|
||||
int WebPPictureYUVAToARGB(WebPPicture* picture) {
|
||||
if (picture == NULL) return 0;
|
||||
if (picture->memory_ == NULL || picture->y == NULL ||
|
||||
picture->u == NULL || picture->v == NULL) {
|
||||
if (picture->y == NULL || picture->u == NULL || picture->v == NULL) {
|
||||
return WebPEncodingSetError(picture, VP8_ENC_ERROR_NULL_PARAMETER);
|
||||
}
|
||||
if ((picture->colorspace & WEBP_CSP_ALPHA_BIT) && picture->a == NULL) {
|
||||
|
Reference in New Issue
Block a user