diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-25 22:12:33 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-27 00:11:21 +0100 |
commit | 80eca6ec994bf29c9f0d0c11b0f39072e35c542f (patch) | |
tree | 9c661f62cfee9e88dfb1f58a77de2bc864229dbc | |
parent | 1ecc9065364d399bca8e27028dba064e5acc69c4 (diff) | |
download | ffmpeg-80eca6ec994bf29c9f0d0c11b0f39072e35c542f.tar.gz |
avcodec/aacps: Inline ff_ps_ctx_init()
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/aacps.c | 5 | ||||
-rw-r--r-- | libavcodec/aacps.h | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/aacps.c b/libavcodec/aacps.c index 5a3e6b3dfd..6008edd332 100644 --- a/libavcodec/aacps.c +++ b/libavcodec/aacps.c @@ -740,8 +740,3 @@ int AAC_RENAME(ff_ps_apply)(PSContext *ps, INTFLOAT L[2][38][64], INTFLOAT R[2][ av_cold void AAC_RENAME(ff_ps_init)(void) { ps_tableinit(); } - -av_cold void AAC_RENAME(ff_ps_ctx_init)(PSContext *ps) -{ - AAC_RENAME(ff_psdsp_init)(&ps->dsp); -} diff --git a/libavcodec/aacps.h b/libavcodec/aacps.h index c8814b4c3d..08c92dc404 100644 --- a/libavcodec/aacps.h +++ b/libavcodec/aacps.h @@ -93,7 +93,12 @@ extern const int8_t ff_k_to_i_34[]; void ff_ps_init_common(void); void AAC_RENAME(ff_ps_init)(void); -void AAC_RENAME(ff_ps_ctx_init)(PSContext *ps); + +static inline void AAC_RENAME(ff_ps_ctx_init)(PSContext *ps) +{ + AAC_RENAME(ff_psdsp_init)(&ps->dsp); +} + int ff_ps_read_data(void *logctx, GetBitContext *gb, PSCommonContext *ps, int bits_left); int AAC_RENAME(ff_ps_apply)(PSContext *ps, INTFLOAT L[2][38][64], INTFLOAT R[2][38][64], int top); |