| Index: third_party/libwebp/enc/picture.c
|
| diff --git a/third_party/libwebp/enc/picture.c b/third_party/libwebp/enc/picture.c
|
| index d9befbc47d93fa0dcd1a1c5ac73c4a748f1df747..28c56cd6e54d18cbfa9933b25f3bf7ad0e74942f 100644
|
| --- a/third_party/libwebp/enc/picture.c
|
| +++ b/third_party/libwebp/enc/picture.c
|
| @@ -88,8 +88,9 @@ int WebPPictureAllocARGB(WebPPicture* const picture, int width, int height) {
|
| }
|
|
|
| int WebPPictureAllocYUVA(WebPPicture* const picture, int width, int height) {
|
| - const WebPEncCSP uv_csp = picture->colorspace & WEBP_CSP_UV_MASK;
|
| - const int has_alpha = picture->colorspace & WEBP_CSP_ALPHA_BIT;
|
| + const WebPEncCSP uv_csp =
|
| + (WebPEncCSP)((int)picture->colorspace & WEBP_CSP_UV_MASK);
|
| + const int has_alpha = (int)picture->colorspace & WEBP_CSP_ALPHA_BIT;
|
| const int y_stride = width;
|
| const int uv_width = (width + 1) >> 1;
|
| const int uv_height = (height + 1) >> 1;
|
|
|