diff options
author | Nicolas Gaullier <nicolas.gaullier@cji.paris> | 2024-10-27 01:01:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-11-28 14:15:50 +0100 |
commit | 44d32c8a23046d40b6be16b93073197efb082cf0 (patch) | |
tree | 3d3130097dfb40a0b5d610b81bc8f9a1ed5cbc7e | |
parent | 248832dd5b799a95bcb1beb4d65a9ad5071a06a8 (diff) | |
download | ffmpeg-44d32c8a23046d40b6be16b93073197efb082cf0.tar.gz |
avcodec/ac3dec: fix build when eac3 decoder is disabled
Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavcodec/ac3dec_fixed.c | 3 | ||||
-rw-r--r-- | libavcodec/ac3dec_float.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/ac3dec_fixed.c b/libavcodec/ac3dec_fixed.c index c9e5cda69c..e0db9b2260 100644 --- a/libavcodec/ac3dec_fixed.c +++ b/libavcodec/ac3dec_fixed.c @@ -47,6 +47,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config_components.h" #define USE_FIXED 1 #include "ac3dec.h" #include "codec_internal.h" @@ -152,7 +153,9 @@ static void ac3_downmix_c_fixed16(int16_t **samples, int16_t **matrix, } } +#if CONFIG_EAC3_DECODER #include "eac3dec.c" +#endif #include "ac3dec.c" static const AVOption options[] = { diff --git a/libavcodec/ac3dec_float.c b/libavcodec/ac3dec_float.c index 550a9017de..d94070bc0c 100644 --- a/libavcodec/ac3dec_float.c +++ b/libavcodec/ac3dec_float.c @@ -34,7 +34,9 @@ #include "ac3dec.h" #include "codec_internal.h" #include "profiles.h" +#if CONFIG_EAC3_DECODER #include "eac3dec.c" +#endif #include "ac3dec.c" static const AVOption options[] = { |