mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user