diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-22 20:09:02 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 17:51:48 +0100 |
commit | fc5d22abe40e0ab5b603b69752288565c92de670 (patch) | |
tree | 90a5aea0789ca5532b4bcb2528f5f7840052b032 /libavcodec/aac_defines.h | |
parent | 8c9404b8d27b8f2c187709d5c4fa51e75c918a0b (diff) |
avcodec/aacdec, aactab: Move kbd tables to their only user
The floating point kbd tables for 120 and 960 samples are only used by
the floating point decoder whereas the fixed point kbd tables for 128
and 1024 samples are only used by the fixed point AAC decoder. So move
these tables to their only users. This ensures that they are not
accidentally used somewhere else without ensuring that initializing
these tables stays thread-safe (as it is now because the only place from
where they are initialized is guarded by an AVOnce).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/aac_defines.h')
-rw-r--r-- | libavcodec/aac_defines.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aac_defines.h b/libavcodec/aac_defines.h index 438d78a7aa..74ac011785 100644 --- a/libavcodec/aac_defines.h +++ b/libavcodec/aac_defines.h @@ -34,6 +34,7 @@ #define AAC_RENAME(x) x ## _fixed #define AAC_RENAME_32(x) x ## _fixed_32 +#define AAC_KBD_RENAME(x) aac_ ## x ## _fixed typedef int INTFLOAT; typedef unsigned UINTFLOAT; ///< Equivalent to INTFLOAT, Used as temporal cast to avoid undefined sign overflow operations. typedef int64_t INT64FLOAT; @@ -83,6 +84,7 @@ typedef int AAC_SIGNE; #define AAC_RENAME(x) x #define AAC_RENAME_32(x) x +#define AAC_KBD_RENAME(x) ff_aac_ ## x typedef float INTFLOAT; typedef float UINTFLOAT; typedef float INT64FLOAT; |