From 4ef5efc2b65406b8f5da91ae4abc79c66d4969b5 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 10 Feb 2026 14:04:56 +0100 Subject: [PATCH] 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 Signed-off-by: Andreas Rheinhardt --- libavcodec/aacps_tablegen_template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/aacps_tablegen_template.c b/libavcodec/aacps_tablegen_template.c index e05887b9b1..df8f91bbc0 100644 --- a/libavcodec/aacps_tablegen_template.c +++ b/libavcodec/aacps_tablegen_template.c @@ -23,6 +23,7 @@ #include #define BUILD_TABLES #include "config.h" +#undef ASSERT_LEVEL #undef CONFIG_HARDCODED_TABLES #define CONFIG_HARDCODED_TABLES 0 #include "aac_defines.h"