[FFmpeg-devel] [PATCH 07/12] avcodec/aac/aacdec_float: Call ff_aac_float_common_init() only once

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon May 6 15:14:29 EEST 2024


That's enough.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/aac/aacdec_float.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/aac/aacdec_float.c b/libavcodec/aac/aacdec_float.c
index 5c4eec1204..511db1a604 100644
--- a/libavcodec/aac/aacdec_float.c
+++ b/libavcodec/aac/aacdec_float.c
@@ -64,6 +64,8 @@ static void init_tables_float_fn(void)
     AAC_RENAME(ff_init_ff_sine_windows)(9);
 
     AAC_RENAME(ff_aac_sbr_init)();
+
+    ff_aac_float_common_init();
 }
 
 static int init(AACDecContext *ac)
@@ -75,8 +77,6 @@ static int init(AACDecContext *ac)
     if (!ac->fdsp)
         return AVERROR(ENOMEM);
 
-    ff_aac_float_common_init();
-
     return 0;
 }
 
-- 
2.40.1



More information about the ffmpeg-devel mailing list