diff mbox series

[FFmpeg-devel] avcodec/aacps_tablegen_template: don't redefine CONFIG_HARDCODED_TABLES

Message ID 20240731143508.8364-1-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel] avcodec/aacps_tablegen_template: don't redefine CONFIG_HARDCODED_TABLES | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer July 31, 2024, 2:35 p.m. UTC
Fixes relevant warnings when compiling with --enable-hardcoded-tables

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/aacps_tablegen_template.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Lynne Aug. 1, 2024, 2:21 p.m. UTC | #1
On 31/07/2024 16:35, James Almer wrote:
> Fixes relevant warnings when compiling with --enable-hardcoded-tables
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   libavcodec/aacps_tablegen_template.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/aacps_tablegen_template.c b/libavcodec/aacps_tablegen_template.c
> index e70edf884b..e05887b9b1 100644
> --- a/libavcodec/aacps_tablegen_template.c
> +++ b/libavcodec/aacps_tablegen_template.c
> @@ -22,6 +22,8 @@
>   
>   #include <stdlib.h>
>   #define BUILD_TABLES
> +#include "config.h"
> +#undef CONFIG_HARDCODED_TABLES
>   #define CONFIG_HARDCODED_TABLES 0
>   #include "aac_defines.h"
>   

Sure, LGTM
diff mbox series

Patch

diff --git a/libavcodec/aacps_tablegen_template.c b/libavcodec/aacps_tablegen_template.c
index e70edf884b..e05887b9b1 100644
--- a/libavcodec/aacps_tablegen_template.c
+++ b/libavcodec/aacps_tablegen_template.c
@@ -22,6 +22,8 @@ 
 
 #include <stdlib.h>
 #define BUILD_TABLES
+#include "config.h"
+#undef CONFIG_HARDCODED_TABLES
 #define CONFIG_HARDCODED_TABLES 0
 #include "aac_defines.h"