Commit fcaf5fa2 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/fft-test: put ff_dct* code under CONFIG_DCT

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ffdbec6f
......@@ -334,6 +334,7 @@ int main(int argc, char **argv)
ff_rdft_init(r, fft_nbits, do_inverse ? IDFT_C2R : DFT_R2C);
fft_ref_init(fft_nbits, do_inverse);
break;
# if CONFIG_DCT
case TRANSFORM_DCT:
if (do_inverse)
av_log(NULL, AV_LOG_INFO,"DCT_III");
......@@ -341,6 +342,7 @@ int main(int argc, char **argv)
av_log(NULL, AV_LOG_INFO,"DCT_II");
ff_dct_init(d, fft_nbits, do_inverse ? DCT_III : DCT_II);
break;
# endif
#endif
default:
av_log(NULL, AV_LOG_ERROR, "Requested transform not supported\n");
......@@ -483,9 +485,11 @@ int main(int argc, char **argv)
case TRANSFORM_RDFT:
ff_rdft_end(r);
break;
# if CONFIG_DCT
case TRANSFORM_DCT:
ff_dct_end(d);
break;
# endif
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment