From: Steinar H. Gunderson Date: Sat, 22 Mar 2014 22:25:14 +0000 (+0100) Subject: Fix a small overallocation. X-Git-Tag: 1.1~18^2 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=131e7179b596f8268fd80c32312849da83581e55 Fix a small overallocation. --- diff --git a/fft_pass_effect.cpp b/fft_pass_effect.cpp index e3999b3..b46e5e5 100644 --- a/fft_pass_effect.cpp +++ b/fft_pass_effect.cpp @@ -119,8 +119,8 @@ void FFTPassEffect::generate_support_texture() // bit, so the stride is 8, and so on. assert((fft_size & (fft_size - 1)) == 0); // Must be power of two. - fp16_int_t *tmp = new fp16_int_t[fft_size * 4]; int subfft_size = 1 << pass_number; + fp16_int_t *tmp = new fp16_int_t[subfft_size * 4]; double mulfac; if (inverse) { mulfac = 2.0 * M_PI;