diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-28 18:00:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-01 01:53:32 +0200 |
commit | d9464f3e34e444c4e798ec882dab95bafe5179d5 (patch) | |
tree | a3a993a2d2d44ded495864bfbce066543c42b1b6 /libavcodec/mpegaudiodsp.c | |
parent | 145db38f9b0f05b571fa25334ffffa841fb4ed5e (diff) | |
download | ffmpeg-d9464f3e34e444c4e798ec882dab95bafe5179d5.tar.gz |
avcodec/mpegaudiodsp: Init dct32 directly
This avoids using dct.c and will allow removing it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegaudiodsp.c')
-rw-r--r-- | libavcodec/mpegaudiodsp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/mpegaudiodsp.c b/libavcodec/mpegaudiodsp.c index 5a5a679d91..0971c28734 100644 --- a/libavcodec/mpegaudiodsp.c +++ b/libavcodec/mpegaudiodsp.c @@ -23,7 +23,6 @@ #include "libavutil/thread.h" #include "mpegaudio.h" #include "mpegaudiodsp.h" -#include "dct.h" #include "dct32.h" static AVOnce mpadsp_table_init = AV_ONCE_INIT; @@ -81,15 +80,12 @@ static av_cold void mpadsp_init_tabs(void) av_cold void ff_mpadsp_init(MPADSPContext *s) { - DCTContext dct; - - ff_dct_init(&dct, 5, DCT_II); ff_thread_once(&mpadsp_table_init, &mpadsp_init_tabs); s->apply_window_float = ff_mpadsp_apply_window_float; s->apply_window_fixed = ff_mpadsp_apply_window_fixed; - s->dct32_float = dct.dct32; + s->dct32_float = ff_dct32_float; s->dct32_fixed = ff_dct32_fixed; s->imdct36_blocks_float = ff_imdct36_blocks_float; |