| Index: third_party/WebKit/Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp b/third_party/WebKit/Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp
|
| index 8c6c046d8c8a6563c37d2ad4f95ecb613c5110d1..90afaf8af2bb7e1715d72f6cb1922a4fc836d897 100644
|
| --- a/third_party/WebKit/Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp
|
| @@ -58,7 +58,7 @@ FFTFrame::FFTFrame(unsigned fftSize)
|
| m_inverseContext(nullptr),
|
| m_complexData(fftSize) {
|
| // We only allow power of two.
|
| - ASSERT(1UL << m_log2FFTSize == m_FFTSize);
|
| + DCHECK_EQ(1UL << m_log2FFTSize, m_FFTSize);
|
|
|
| m_forwardContext = contextForSize(fftSize, DFT_R2C);
|
| m_inverseContext = contextForSize(fftSize, IDFT_C2R);
|
| @@ -157,7 +157,7 @@ RDFTContext* FFTFrame::contextForSize(unsigned fftSize, int trans) {
|
| // by sharing the FFTFrames on a per-thread basis.
|
| DCHECK(fftSize);
|
| int pow2size = static_cast<int>(log2(fftSize));
|
| - ASSERT(pow2size < kMaxFFTPow2Size);
|
| + DCHECK_LT(pow2size, kMaxFFTPow2Size);
|
|
|
| RDFTContext* context = av_rdft_init(pow2size, (RDFTransformType)trans);
|
| return context;
|
|
|