| Index: third_party/WebKit/Source/platform/audio/StereoPanner.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/StereoPanner.cpp b/third_party/WebKit/Source/platform/audio/StereoPanner.cpp
|
| index 4a733c59ac3247e3dd686d6b25cf8286dd063d42..4700a0ba99b5193bfd983dbfc2fbda6eb4f820e0 100644
|
| --- a/third_party/WebKit/Source/platform/audio/StereoPanner.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/StereoPanner.cpp
|
| @@ -31,8 +31,9 @@ void StereoPanner::panWithSampleAccurateValues(const AudioBus* inputBus,
|
| AudioBus* outputBus,
|
| const float* panValues,
|
| size_t framesToProcess) {
|
| - 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)
|
| @@ -96,8 +97,9 @@ void StereoPanner::panToTargetValue(const AudioBus* inputBus,
|
| AudioBus* outputBus,
|
| float panValue,
|
| size_t framesToProcess) {
|
| - 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)
|
|
|