History

avcodec/ac3dec: fix build when eac3 decoder is disabled

Nicolas Gaullier committed 2 years ago

Commit 44d32c81 parent 248832d2 files · +5 −0Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/ac3dec_fixed.c +3 −0
  2. libavcodec/ac3dec_float.c +2 −0
libavcodec/ac3dec_fixed.c+3−0
@@ -47,6 +47,7 @@ · 46 unmodified lines
4747 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
4848 */
4949
50+#include "config_components.h"
5051 #define USE_FIXED 1
5152 #include "ac3dec.h"
5253 #include "codec_internal.h"
@@ -152,7 +153,9 @@ static void ac3_downmix_c_fixed16(int16_t **samples, int16_t **matrix, · 99 unmodified lines
152153 }
153154 }
154155
156+#if CONFIG_EAC3_DECODER
155157 #include "eac3dec.c"
158+#endif
156159 #include "ac3dec.c"
157160
158161 static const AVOption options[] = {
libavcodec/ac3dec_float.c+2−0
@@ -34,7 +34,9 @@ · 33 unmodified lines
3434 #include "ac3dec.h"
3535 #include "codec_internal.h"
3636 #include "profiles.h"
37+#if CONFIG_EAC3_DECODER
3738 #include "eac3dec.c"
39+#endif
3840 #include "ac3dec.c"
3941
4042 static const AVOption options[] = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t