mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
format_constants.h: MKFOURCC, correct cast
'd' should be promoted to uint32 before shifting by 24 Change-Id: I6212661af3802709b0098af8402ed73a0d9373ee
This commit is contained in:
parent
d26d9def80
commit
5d791d2603
@ -15,7 +15,7 @@
|
||||
#define WEBP_WEBP_FORMAT_CONSTANTS_H_
|
||||
|
||||
// Create fourcc of the chunk from the chunk tag characters.
|
||||
#define MKFOURCC(a, b, c, d) ((uint32_t)(a) | (b) << 8 | (c) << 16 | (d) << 24)
|
||||
#define MKFOURCC(a, b, c, d) ((a) | (b) << 8 | (c) << 16 | (uint32_t)(d) << 24)
|
||||
|
||||
// VP8 related constants.
|
||||
#define VP8_SIGNATURE 0x9d012a // Signature in VP8 data.
|
||||
|
Loading…
Reference in New Issue
Block a user