1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

cook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow.

This commit is contained in:
Alex Converse 2012-04-16 18:48:39 -07:00
parent 0f96f0d996
commit b5d2bf964b

View File

@ -280,8 +280,8 @@ static av_cold void init_cplscales_table(COOKContext *q)
static inline int decode_bytes(const uint8_t *inbuffer, uint8_t *out, int bytes)
{
static const uint32_t tab[4] = {
AV_BE2NE32C(0x37c511f2), AV_BE2NE32C(0xf237c511),
AV_BE2NE32C(0x11f237c5), AV_BE2NE32C(0xc511f237),
AV_BE2NE32C(0x37c511f2u), AV_BE2NE32C(0xf237c511u),
AV_BE2NE32C(0x11f237c5u), AV_BE2NE32C(0xc511f237u),
};
int i, off;
uint32_t c;