| Index: media/base/audio_hash.cc
|
| diff --git a/media/base/audio_hash.cc b/media/base/audio_hash.cc
|
| index 28f16418b6656725a1a227124ed0a51c4c811fe2..7d705820c2da5300f4427cd118ebe4d0e4d7a880 100644
|
| --- a/media/base/audio_hash.cc
|
| +++ b/media/base/audio_hash.cc
|
| @@ -16,7 +16,6 @@ namespace media {
|
| AudioHash::AudioHash()
|
| : audio_hash_(),
|
| sample_count_(0) {
|
| - COMPILE_ASSERT(arraysize(audio_hash_) == kHashBuckets, audio_hash_size_error);
|
| }
|
|
|
| AudioHash::~AudioHash() {}
|
| @@ -27,7 +26,8 @@ void AudioHash::Update(const AudioBus* audio_bus, int frames) {
|
| const float* channel = audio_bus->channel(ch);
|
| for (uint32 i = 0; i < static_cast<uint32>(frames); ++i) {
|
| const uint32 kSampleIndex = sample_count_ + i;
|
| - const uint32 kHashIndex = (kSampleIndex * (ch + 1)) % kHashBuckets;
|
| + const uint32 kHashIndex =
|
| + (kSampleIndex * (ch + 1)) % arraysize(audio_hash_);
|
|
|
| // Mix in a sine wave with the result so we ensure that sequences of empty
|
| // buffers don't result in an empty hash.
|
|
|