Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2015-07-01 14:34:50 +0300
committerJanne Grunau <janne-libav@jannau.net>2015-07-01 14:34:50 +0300
commit4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75 (patch)
treeaa4183d76786189a754210d0dd4e80dd184dbb93 /libavcodec/g2meet.c
parent007e27d363ba7d994019dc897dc9c39071bb204a (diff)
g2meet: use an unsigned type for the djb hash
Diffstat (limited to 'libavcodec/g2meet.c')
-rw-r--r--libavcodec/g2meet.c2
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);