aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2012-04-16 18:48:39 -0700
committerAlex Converse <alex.converse@gmail.com>2012-04-17 14:51:23 -0700
commitb5d2bf964be338bf8e86a01619646332729b434e (patch)
tree088276c7eb1ba3bb3f2eceaf2cae87bd60e35944 /libavcodec/cook.c
parent0f96f0d9968a767ead3aec823fcdfb78f26f7be7 (diff)
downloadffmpeg-b5d2bf964be338bf8e86a01619646332729b434e.tar.gz
cook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow.
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 217abcf117..c8d7d77839 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -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;