mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
Merge "fix warnings for vs9 x64"
This commit is contained in:
commit
b6e65f3d35
@ -242,10 +242,10 @@ static int WriteBMP(FILE* fout, const WebPDecBuffer* const buffer) {
|
|||||||
const uint32_t height = buffer->height;
|
const uint32_t height = buffer->height;
|
||||||
const uint8_t* const rgba = buffer->u.RGBA.rgba;
|
const uint8_t* const rgba = buffer->u.RGBA.rgba;
|
||||||
const int stride = buffer->u.RGBA.stride;
|
const int stride = buffer->u.RGBA.stride;
|
||||||
const size_t bytes_per_px = has_alpha ? 4 : 3;
|
const uint32_t bytes_per_px = has_alpha ? 4 : 3;
|
||||||
uint32_t y;
|
uint32_t y;
|
||||||
const int line_size = bytes_per_px * width;
|
const uint32_t line_size = bytes_per_px * width;
|
||||||
const int bmp_stride = (line_size + 3) & ~3; // pad to 4
|
const uint32_t bmp_stride = (line_size + 3) & ~3; // pad to 4
|
||||||
const uint32_t total_size = bmp_stride * height + BMP_HEADER_SIZE;
|
const uint32_t total_size = bmp_stride * height + BMP_HEADER_SIZE;
|
||||||
uint8_t bmp_header[BMP_HEADER_SIZE] = { 0 };
|
uint8_t bmp_header[BMP_HEADER_SIZE] = { 0 };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user