Index: third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp b/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp |
index 0e980a1b446c3c56cbe7d39be7d2c026bba382ce..a4a6c3f430c84d2b74caeb88d44556396ca43ca5 100644 |
--- a/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp |
+++ b/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp |
@@ -41,8 +41,9 @@ void EqualPowerPanner::pan(double azimuth, |
AudioBus* outputBus, |
size_t framesToProcess, |
AudioBus::ChannelInterpretation) { |
- bool isInputSafe = inputBus && (inputBus->numberOfChannels() == 1 || |
- inputBus->numberOfChannels() == 2) && |
+ bool isInputSafe = inputBus && |
+ (inputBus->numberOfChannels() == 1 || |
+ inputBus->numberOfChannels() == 2) && |
framesToProcess <= inputBus->length(); |
ASSERT(isInputSafe); |
if (!isInputSafe) |
@@ -177,8 +178,9 @@ void EqualPowerPanner::panWithSampleAccurateValues( |
AudioBus* outputBus, |
size_t framesToProcess, |
AudioBus::ChannelInterpretation) { |
- bool isInputSafe = inputBus && (inputBus->numberOfChannels() == 1 || |
- inputBus->numberOfChannels() == 2) && |
+ bool isInputSafe = inputBus && |
+ (inputBus->numberOfChannels() == 1 || |
+ inputBus->numberOfChannels() == 2) && |
framesToProcess <= inputBus->length(); |
DCHECK(isInputSafe); |
if (!isInputSafe) |