diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-14 18:15:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-18 14:52:26 +0200 |
commit | 94132dc4aa4d8cde4f1a93c95e590041c7db9701 (patch) | |
tree | b2aeddc07955b56103ca63cc6f38252098f6bd79 /libavcodec/ac3enc.h | |
parent | 3b93b1af139dbf3e498a9e66bbfe17500e25e53d (diff) | |
download | ffmpeg-94132dc4aa4d8cde4f1a93c95e590041c7db9701.tar.gz |
avcodec/ac3enc: Avoid allocation for mdct_window
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/ac3enc.h')
-rw-r--r-- | libavcodec/ac3enc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h index 618c952a18..41b9a3a20b 100644 --- a/libavcodec/ac3enc.h +++ b/libavcodec/ac3enc.h @@ -169,7 +169,6 @@ typedef struct AC3EncodeContext { AC3DSPContext ac3dsp; ///< AC-3 optimized functions AVTXContext *tx; ///< FFT context for MDCT calculation av_tx_fn tx_fn; - const SampleType *mdct_window; ///< MDCT window function array AC3Block blocks[AC3_MAX_BLOCKS]; ///< per-block info @@ -261,6 +260,10 @@ typedef struct AC3EncodeContext { void (*output_frame_header)(struct AC3EncodeContext *s); union { + DECLARE_ALIGNED(32, float, mdct_window_float)[AC3_BLOCK_SIZE]; + DECLARE_ALIGNED(32, int32_t, mdct_window_fixed)[AC3_BLOCK_SIZE]; + }; + union { DECLARE_ALIGNED(32, float, windowed_samples_float)[AC3_WINDOW_SIZE]; DECLARE_ALIGNED(32, int32_t, windowed_samples_fixed)[AC3_WINDOW_SIZE]; }; |