avcodec/aacps_tablegen_template: Fix hardcoded tables with assert-level 2

In this case an av_assert2 in lavu/softfloat.h pulls in
a dependency on av_log(), which is not available at all,
because the tablegen tools are created for and run on
the host, not the target. This leads to linking failures.

Fix this by undefining ASSERT_LEVEL before the inclusion
of avassert.h.

Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-02-10 14:04:56 +01:00
parent be1fd6d9d4
commit 4ef5efc2b6

View File

@@ -23,6 +23,7 @@
#include <stdlib.h>
#define BUILD_TABLES
#include "config.h"
#undef ASSERT_LEVEL
#undef CONFIG_HARDCODED_TABLES
#define CONFIG_HARDCODED_TABLES 0
#include "aac_defines.h"