From 651448a8a7bdeecc96705e4020f7dfbf02afce9b Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 20 Jul 2015 16:48:07 -0300 Subject: [PATCH] avcodec/aacsbr: fix compilation with hardcoded tables Reviewed-by: Michael Niedermayer Signed-off-by: James Almer --- libavcodec/aacsbr_fixed_tablegen.c | 4 +++- libavcodec/aacsbr_tablegen.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/aacsbr_fixed_tablegen.c b/libavcodec/aacsbr_fixed_tablegen.c index 7117dbd0bb..b896d75880 100644 --- a/libavcodec/aacsbr_fixed_tablegen.c +++ b/libavcodec/aacsbr_fixed_tablegen.c @@ -21,9 +21,11 @@ */ #include +#include "libavutil/internal.h" +#include "libavutil/common.h" +#undef CONFIG_HARDCODED_TABLES #define CONFIG_HARDCODED_TABLES 0 #define USE_FIXED 1 -#include "libavutil/common.h" #include "aacsbr_fixed_tablegen.h" #include "tableprint.h" diff --git a/libavcodec/aacsbr_tablegen.c b/libavcodec/aacsbr_tablegen.c index 4f58270aa2..ee0d818f81 100644 --- a/libavcodec/aacsbr_tablegen.c +++ b/libavcodec/aacsbr_tablegen.c @@ -21,9 +21,11 @@ */ #include +#include "libavutil/internal.h" +#include "libavutil/common.h" +#undef CONFIG_HARDCODED_TABLES #define CONFIG_HARDCODED_TABLES 0 #define USE_FIXED 0 -#include "libavutil/common.h" #include "aacsbr_tablegen.h" #include "tableprint.h"