summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/cook_fixpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libcook/cook_fixpoint.h')
-rw-r--r--apps/codecs/libcook/cook_fixpoint.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/libcook/cook_fixpoint.h b/apps/codecs/libcook/cook_fixpoint.h
index b17d99eeeb..30e5a3eee2 100644
--- a/apps/codecs/libcook/cook_fixpoint.h
+++ b/apps/codecs/libcook/cook_fixpoint.h
@@ -165,15 +165,14 @@ static void scalar_dequant_math(COOKContext *q, int index,
165 * @param mlt_tmp pointer to temporary storage space 165 * @param mlt_tmp pointer to temporary storage space
166 */ 166 */
167#include "../lib/mdct_lookup.h" 167#include "../lib/mdct_lookup.h"
168#include "../lib/mdct2.h"
169 168
170static inline void imlt_math(COOKContext *q, FIXP *in) 169static inline void imlt_math(COOKContext *q, FIXP *in)
171{ 170{
172 const int n = q->samples_per_channel; 171 const int n = q->samples_per_channel;
173 const int step = 2 << (10 - av_log2(n)); 172 const int step = 2 << (10 - av_log2(n));
174 int i = 0, j = 0; 173 int i = 0, j = 0;
175 174
176 mdct_backward(2 * n, in, q->mono_mdct_output); 175 ff_imdct_calc(q->mdct_nbits, q->mono_mdct_output, in);
177 176
178 do { 177 do {
179 FIXP tmp = q->mono_mdct_output[i]; 178 FIXP tmp = q->mono_mdct_output[i];