Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-11-07 11:31:15 +0300
committerMartin Storsjö <martin@martin.st>2022-11-07 11:34:31 +0300
commit202b7a9ae7be232a819acee666ed7b9835fd67ff (patch)
treeb0d8874d1dec3e0dd2e46a6ba985bf94d29dac38
parente17628b720e696159405dfa8117950cf9d194808 (diff)
avcodec/tests/fft: Fix building with CONFIG_MDCT disabled
Since e6afa61be97674312e36c9b6f8bb5fba009232e7, no components in libavcodec enable CONFIG_MDCT. This fixes building "make testprogs". Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavcodec/tests/fft.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/tests/fft.c b/libavcodec/tests/fft.c
index cc951b0dd4..163f3e89c4 100644
--- a/libavcodec/tests/fft.c
+++ b/libavcodec/tests/fft.c
@@ -226,6 +226,7 @@ static inline void fft_init(FFTContext **s, int nbits, int inverse)
#endif
}
+#if CONFIG_MDCT
static inline void mdct_init(FFTContext **s, int nbits, int inverse, double scale)
{
#if AVFFT
@@ -252,6 +253,7 @@ static inline void imdct_calc(struct FFTContext *s, FFTSample *output, const FFT
s->imdct_calc(s, output, input);
#endif
}
+#endif
static inline void fft_permute(FFTContext *s, FFTComplex *z)
{
@@ -592,12 +594,14 @@ int main(int argc, char **argv)
time_start = av_gettime_relative();
for (it = 0; it < nb_its; it++) {
switch (transform) {
+#if CONFIG_MDCT
case TRANSFORM_MDCT:
if (do_inverse)
imdct_calc(m, &tab->re, &tab1->re);
else
mdct_calc(m, &tab->re, &tab1->re);
break;
+#endif
case TRANSFORM_FFT:
memcpy(tab, tab1, fft_size * sizeof(FFTComplex));
fft_calc(s, tab);