Browse Source

Merge commit '4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75'

* commit '4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75':
  g2meet: use an unsigned type for the djb hash

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
92c858ae66
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/g2meet.c

+ 1
- 1
libavcodec/g2meet.c View File

@@ -400,7 +400,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);


Loading…
Cancel
Save