diff options
author | Janne Grunau | 2015-07-01 13:34:50 +0200 |
---|---|---|
committer | Janne Grunau | 2015-07-01 13:34:50 +0200 |
commit | 4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75 (patch) | |
tree | aa4183d76786189a754210d0dd4e80dd184dbb93 | |
parent | 007e27d363ba7d994019dc897dc9c39071bb204a (diff) |
g2meet: use an unsigned type for the djb hash
-rw-r--r-- | libavcodec/g2meet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c index d0b36f0ea8..600e2b23ce 100644 --- a/libavcodec/g2meet.c +++ b/libavcodec/g2meet.c @@ -399,7 +399,7 @@ static inline int log2_ceil(uint32_t x) /* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */ static int djb2_hash(uint32_t key) { - int h = 5381; + uint32_t h = 5381; h = (h * 33) ^ ((key >> 24) & 0xFF); // xxx: probably not needed at all h = (h * 33) ^ ((key >> 16) & 0xFF); |