summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/bench/bench.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/media/bench/bench.cc b/media/bench/bench.cc
index 366abdd..11afdf9 100644
--- a/media/bench/bench.cc
+++ b/media/bench/bench.cc
@@ -27,6 +27,7 @@
#include "base/md5.h"
#include "base/string_util.h"
#include "base/time.h"
+#include "media/base/djb2.h"
#include "media/base/media.h"
#include "media/bench/file_protocol.h"
#include "media/filters/ffmpeg_common.h"
@@ -46,19 +47,6 @@ const wchar_t kLoop[] = L"loop";
} // namespace switches
-namespace {
-// DJB2 hash
-unsigned int DJB2Hash(const uint8* s,
- size_t len, unsigned int hash) {
- if (len > 0) {
- do {
- hash = hash * 33 + *s++;
- } while (--len);
- }
- return hash;
-}
-}
-
#if defined(OS_WIN)
// warning: disable warning about exception handler.
#pragma warning(disable:4509)