mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
fix some uint64_t -> int conversion warnings with MSC
Change-Id: I5dc314c9d1a3cbda095be3c90886983500104867
This commit is contained in:
parent
c1a0437b87
commit
223d8c60aa
@ -106,7 +106,7 @@ static VP8StatusCode AllocateBuffer(WebPDecBuffer* const buffer) {
|
|||||||
WebPYUVABuffer* const buf = &buffer->u.YUVA;
|
WebPYUVABuffer* const buf = &buffer->u.YUVA;
|
||||||
buf->y = output;
|
buf->y = output;
|
||||||
buf->y_stride = stride;
|
buf->y_stride = stride;
|
||||||
buf->y_size = size;
|
buf->y_size = (int)size;
|
||||||
buf->u = output + size;
|
buf->u = output + size;
|
||||||
buf->u_stride = uv_stride;
|
buf->u_stride = uv_stride;
|
||||||
buf->u_size = uv_size;
|
buf->u_size = uv_size;
|
||||||
@ -116,13 +116,13 @@ static VP8StatusCode AllocateBuffer(WebPDecBuffer* const buffer) {
|
|||||||
if (mode == MODE_YUVA) {
|
if (mode == MODE_YUVA) {
|
||||||
buf->a = output + size + 2 * uv_size;
|
buf->a = output + size + 2 * uv_size;
|
||||||
}
|
}
|
||||||
buf->a_size = a_size;
|
buf->a_size = (int)a_size;
|
||||||
buf->a_stride = a_stride;
|
buf->a_stride = a_stride;
|
||||||
} else { // RGBA initialization
|
} else { // RGBA initialization
|
||||||
WebPRGBABuffer* const buf = &buffer->u.RGBA;
|
WebPRGBABuffer* const buf = &buffer->u.RGBA;
|
||||||
buf->rgba = output;
|
buf->rgba = output;
|
||||||
buf->stride = stride;
|
buf->stride = stride;
|
||||||
buf->size = size;
|
buf->size = (int)size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CheckDecBuffer(buffer);
|
return CheckDecBuffer(buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user