Index: Source/WebCore/platform/audio/HRTFKernel.cpp |
=================================================================== |
--- Source/WebCore/platform/audio/HRTFKernel.cpp (revision 97216) |
+++ Source/WebCore/platform/audio/HRTFKernel.cpp (working copy) |
@@ -51,7 +51,10 @@ |
float* impulseP = channel->data(); |
- ASSERT(channel->length() >= analysisFFTSize); |
+ bool isSizeGood = channel->length() >= analysisFFTSize; |
+ ASSERT(isSizeGood); |
+ if (!isSizeGood) |
+ return 0; |
// Check for power-of-2. |
ASSERT(1UL << static_cast<unsigned>(log2(analysisFFTSize)) == analysisFFTSize); |