]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/aacps_fixed_tablegen: Don't include config.h
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 28 Jan 2021 15:19:23 +0000 (16:19 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 2 Feb 2021 00:47:01 +0000 (01:47 +0100)
It is only valid for the target, not the host and therefore it must not
be included when building the tables when hardcoded tables are enabled.

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/aacps_fixed_tablegen.h
libavcodec/aacps_tablegen_template.c

index 356fb8b293aa528157a625abdbcf6412ade8660a..8fb1da5076ac0965ed232c64b18d0492d7c4c464 100644 (file)
 #else
 #include "libavutil/common.h"
 #include "libavutil/mathematics.h"
-#include "libavutil/mem.h"
+#ifdef BUILD_TABLES
+#undef DECLARE_ALIGNED
+#define DECLARE_ALIGNED(align, type, variable) type variable
+#else
 #include "libavutil/mem_internal.h"
+#endif
 
 #include "aac_defines.h"
 #include "libavutil/softfloat.h"
index 341bd444099e0cfbc42c5f8339b3072682ff0a1b..e70edf884b2017ae53499f1d406d2325f12def9a 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <stdlib.h>
+#define BUILD_TABLES
 #define CONFIG_HARDCODED_TABLES 0
 #include "aac_defines.h"