summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2015-07-01 13:34:50 +0200
committerJanne Grunau <janne-libav@jannau.net>2015-07-01 13:34:50 +0200
commit4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75 (patch)
treeaa4183d76786189a754210d0dd4e80dd184dbb93
parent007e27d363ba7d994019dc897dc9c39071bb204a (diff)
downloadffmpeg-streaming-4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75.zip
ffmpeg-streaming-4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75.tar.gz
g2meet: use an unsigned type for the djb hash
-rw-r--r--libavcodec/g2meet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index d0b36f0..600e2b2 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);
OpenPOWER on IntegriCloud