aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-02-23 14:56:49 +0200
committerMartin Storsjö <martin@martin.st>2022-03-16 14:12:49 +0200
commita78f136f3fa039fd7ad664fd6e6e976f1448c68b (patch)
tree071be1991a6b641284543e77dbb82a0dcfc8f35d /libavcodec
parentf3a0e2ee2b97e2d46b351c29853c056d126884e2 (diff)
downloadffmpeg-a78f136f3fa039fd7ad664fd6e6e976f1448c68b.tar.gz
configure: Use a separate config_components.h header for $ALL_COMPONENTS
This avoids unnecessary rebuilds of most source files if only the list of enabled components has changed, but not the other properties of the build, set in config.h. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/8svx.c2
-rw-r--r--libavcodec/a64multienc.c2
-rw-r--r--libavcodec/aac_ac3_parser.c2
-rw-r--r--libavcodec/aactab.c1
-rw-r--r--libavcodec/aarch64/h264cmc_neon.S2
-rw-r--r--libavcodec/ac3_parser.c1
-rw-r--r--libavcodec/ac3dec.c2
-rw-r--r--libavcodec/ac3dec_float.c3
-rw-r--r--libavcodec/ac3enc.c1
-rw-r--r--libavcodec/ac3enc_template.c2
-rw-r--r--libavcodec/adpcm.c3
-rw-r--r--libavcodec/adpcmenc.c2
-rw-r--r--libavcodec/allcodecs.c1
-rw-r--r--libavcodec/amfenc.c1
-rw-r--r--libavcodec/aptxdec.c2
-rw-r--r--libavcodec/aptxenc.c2
-rw-r--r--libavcodec/arm/flacdsp_init_arm.c1
-rw-r--r--libavcodec/arm/h264cmc_neon.S2
-rw-r--r--libavcodec/assdec.c1
-rw-r--r--libavcodec/assenc.c2
-rw-r--r--libavcodec/asvdec.c1
-rw-r--r--libavcodec/asvenc.c2
-rw-r--r--libavcodec/audiotoolboxdec.c1
-rw-r--r--libavcodec/av1dec.c2
-rw-r--r--libavcodec/binkaudio.c2
-rw-r--r--libavcodec/bintext.c2
-rw-r--r--libavcodec/bsf.c1
-rw-r--r--libavcodec/crystalhd.c2
-rw-r--r--libavcodec/cuviddec.c2
-rw-r--r--libavcodec/cyuv.c2
-rw-r--r--libavcodec/dxva2_av1.c2
-rw-r--r--libavcodec/dxva2_h264.c2
-rw-r--r--libavcodec/dxva2_hevc.c2
-rw-r--r--libavcodec/dxva2_mpeg2.c2
-rw-r--r--libavcodec/dxva2_vc1.c2
-rw-r--r--libavcodec/dxva2_vp9.c2
-rw-r--r--libavcodec/flashsv.c2
-rw-r--r--libavcodec/g726.c3
-rw-r--r--libavcodec/gsmdec.c2
-rw-r--r--libavcodec/h263dec.c2
-rw-r--r--libavcodec/h264_slice.c2
-rw-r--r--libavcodec/h264dec.c2
-rw-r--r--libavcodec/hevcdec.c2
-rw-r--r--libavcodec/huffyuvdec.c2
-rw-r--r--libavcodec/huffyuvenc.c2
-rw-r--r--libavcodec/idctdsp.c1
-rw-r--r--libavcodec/iff.c2
-rw-r--r--libavcodec/imc.c1
-rw-r--r--libavcodec/ituh263dec.c2
-rw-r--r--libavcodec/ituh263enc.c2
-rw-r--r--libavcodec/lcldec.c2
-rw-r--r--libavcodec/libgsmdec.c1
-rw-r--r--libavcodec/libgsmenc.c1
-rw-r--r--libavcodec/libopencore-amr.c2
-rw-r--r--libavcodec/libvpx.c1
-rw-r--r--libavcodec/libvpxdec.c2
-rw-r--r--libavcodec/libvpxenc.c2
-rw-r--r--libavcodec/libx264.c2
-rw-r--r--libavcodec/me_cmp.c1
-rw-r--r--libavcodec/mediacodecdec.c2
-rw-r--r--libavcodec/metasound_data.c1
-rw-r--r--libavcodec/mjpegdec.c2
-rw-r--r--libavcodec/mjpegenc.c2
-rw-r--r--libavcodec/mlpdec.c2
-rw-r--r--libavcodec/mlpenc.c2
-rw-r--r--libavcodec/mpeg12dec.c2
-rw-r--r--libavcodec/mpeg12enc.c1
-rw-r--r--libavcodec/mpeg4videodec.c2
-rw-r--r--libavcodec/mpegaudiodec_fixed.c1
-rw-r--r--libavcodec/mpegaudiodec_float.c1
-rw-r--r--libavcodec/mpegaudiodec_template.c2
-rw-r--r--libavcodec/mpegvideo.c2
-rw-r--r--libavcodec/mpegvideo_enc.c2
-rw-r--r--libavcodec/mpegvideo_motion.c2
-rw-r--r--libavcodec/msmpeg4.c2
-rw-r--r--libavcodec/msmpeg4dec.c2
-rw-r--r--libavcodec/mvcdec.c2
-rw-r--r--libavcodec/nvdec.c1
-rw-r--r--libavcodec/nvdec_mjpeg.c2
-rw-r--r--libavcodec/nvdec_mpeg12.c2
-rw-r--r--libavcodec/nvdec_vc1.c2
-rw-r--r--libavcodec/nvenc.c1
-rw-r--r--libavcodec/options.c2
-rw-r--r--libavcodec/options_table.h2
-rw-r--r--libavcodec/opus_pvq.c2
-rw-r--r--libavcodec/pcm.c1
-rw-r--r--libavcodec/pngdec.c2
-rw-r--r--libavcodec/pnmdec.c2
-rw-r--r--libavcodec/pnmenc.c2
-rw-r--r--libavcodec/proresdec2.c2
-rw-r--r--libavcodec/qpeldsp.c1
-rw-r--r--libavcodec/qsvdec.c2
-rw-r--r--libavcodec/qsvenc.c2
-rw-r--r--libavcodec/r210dec.c1
-rw-r--r--libavcodec/r210enc.c2
-rw-r--r--libavcodec/rv34_parser.c2
-rw-r--r--libavcodec/sonic.c3
-rw-r--r--libavcodec/sp5xdec.c2
-rw-r--r--libavcodec/speedhq.c1
-rw-r--r--libavcodec/speedhqenc.c2
-rw-r--r--libavcodec/srtdec.c2
-rw-r--r--libavcodec/srtenc.c2
-rw-r--r--libavcodec/tests/dct.c1
-rw-r--r--libavcodec/tests/x86/dct.c1
-rw-r--r--libavcodec/textdec.c2
-rw-r--r--libavcodec/v408dec.c2
-rw-r--r--libavcodec/v408enc.c2
-rw-r--r--libavcodec/vaapi_decode.c2
-rw-r--r--libavcodec/vaapi_encode.c2
-rw-r--r--libavcodec/vaapi_mpeg4.c2
-rw-r--r--libavcodec/vaapi_vc1.c2
-rw-r--r--libavcodec/vc1dec.c2
-rw-r--r--libavcodec/vc1dsp.c2
-rw-r--r--libavcodec/vdpau.c2
-rw-r--r--libavcodec/vdpau_mpeg12.c2
-rw-r--r--libavcodec/vdpau_vc1.c2
-rw-r--r--libavcodec/videotoolbox.c1
-rw-r--r--libavcodec/vorbis_parser.c2
-rw-r--r--libavcodec/vp3.c2
-rw-r--r--libavcodec/vp56dsp.c1
-rw-r--r--libavcodec/vp8.c2
-rw-r--r--libavcodec/vp8dsp.c2
-rw-r--r--libavcodec/vp9.c2
-rw-r--r--libavcodec/wmadec.c2
-rw-r--r--libavcodec/wmaenc.c2
-rw-r--r--libavcodec/x86/flacdsp_init.c1
-rw-r--r--libavcodec/x86/hpeldsp_init.c2
127 files changed, 227 insertions, 0 deletions
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index 6ef7921274..e92bc39e16 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -37,6 +37,8 @@
* http://aminet.net/mods/smpl/
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 7bdf4a61b1..a1e0d711ba 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -24,6 +24,8 @@
* a64 video encoder - multicolor modes
*/
+#include "config_components.h"
+
#include "a64colors.h"
#include "a64tables.h"
#include "elbg.h"
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c
index 4ce7a73972..b14b1e31f9 100644
--- a/libavcodec/aac_ac3_parser.c
+++ b/libavcodec/aac_ac3_parser.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "parser.h"
diff --git a/libavcodec/aactab.c b/libavcodec/aactab.c
index 0553f41a61..0f4941d5df 100644
--- a/libavcodec/aactab.c
+++ b/libavcodec/aactab.c
@@ -28,6 +28,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/mem_internal.h"
#include "libavutil/thread.h"
#include "aac.h"
diff --git a/libavcodec/aarch64/h264cmc_neon.S b/libavcodec/aarch64/h264cmc_neon.S
index 8be7578001..f8e9407854 100644
--- a/libavcodec/aarch64/h264cmc_neon.S
+++ b/libavcodec/aarch64/h264cmc_neon.S
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/aarch64/asm.S"
/* chroma_mc8(uint8_t *dst, uint8_t *src, ptrdiff_t stride, int h, int x, int y) */
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c
index f3c7d27d59..86e8d417eb 100644
--- a/libavcodec/ac3_parser.c
+++ b/libavcodec/ac3_parser.c
@@ -21,6 +21,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/channel_layout.h"
#include "parser.h"
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 70b35c170f..c4ba781d9e 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -24,6 +24,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <stdio.h>
#include <stddef.h>
#include <math.h>
diff --git a/libavcodec/ac3dec_float.c b/libavcodec/ac3dec_float.c
index 2b1b359a0c..6611103c50 100644
--- a/libavcodec/ac3dec_float.c
+++ b/libavcodec/ac3dec_float.c
@@ -27,6 +27,9 @@
/**
* Upmix delay samples from stereo to original channel layout.
*/
+
+#include "config_components.h"
+
#include "ac3dec.h"
#include "eac3dec.c"
#include "ac3dec.c"
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 30ba8bfecd..473c8f0a45 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -38,6 +38,7 @@
#include "libavutil/opt.h"
#include "libavutil/thread.h"
#include "avcodec.h"
+#include "config_components.h"
#include "encode.h"
#include "internal.h"
#include "me_cmp.h"
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 5ecef3b178..fbe1dd1e04 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -26,6 +26,8 @@
* AC-3 encoder float/fixed template
*/
+#include "config_components.h"
+
#include <stdint.h>
#include "libavutil/attributes.h"
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 0591314302..0058091729 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -34,6 +34,9 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include "config_components.h"
+
#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c
index 92c31b4841..8c44285d2b 100644
--- a/libavcodec/adpcmenc.c
+++ b/libavcodec/adpcmenc.c
@@ -22,6 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/opt.h"
#include "avcodec.h"
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index 628d27fd75..74049afa8f 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -28,6 +28,7 @@
#include <string.h>
#include "config.h"
+#include "config_components.h"
#include "libavutil/thread.h"
#include "codec.h"
#include "codec_id.h"
diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c
index 0e5117c5a3..a033e1220e 100644
--- a/libavcodec/amfenc.c
+++ b/libavcodec/amfenc.c
@@ -17,6 +17,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
diff --git a/libavcodec/aptxdec.c b/libavcodec/aptxdec.c
index 1d862e8e6b..a1e7cfa218 100644
--- a/libavcodec/aptxdec.c
+++ b/libavcodec/aptxdec.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/channel_layout.h"
#include "aptx.h"
diff --git a/libavcodec/aptxenc.c b/libavcodec/aptxenc.c
index 1230ee306d..69265a589b 100644
--- a/libavcodec/aptxenc.c
+++ b/libavcodec/aptxenc.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/channel_layout.h"
#include "aptx.h"
#include "encode.h"
diff --git a/libavcodec/arm/flacdsp_init_arm.c b/libavcodec/arm/flacdsp_init_arm.c
index c4a6e3a535..bac9ff1959 100644
--- a/libavcodec/arm/flacdsp_init_arm.c
+++ b/libavcodec/arm/flacdsp_init_arm.c
@@ -21,6 +21,7 @@
#include "libavutil/attributes.h"
#include "libavcodec/flacdsp.h"
#include "config.h"
+#include "config_components.h"
void ff_flac_lpc_16_arm(int32_t *samples, const int coeffs[32], int order,
int qlevel, int len);
diff --git a/libavcodec/arm/h264cmc_neon.S b/libavcodec/arm/h264cmc_neon.S
index 5a4159eedd..3687b02ede 100644
--- a/libavcodec/arm/h264cmc_neon.S
+++ b/libavcodec/arm/h264cmc_neon.S
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/arm/asm.S"
/* chroma_mc8(uint8_t *dst, uint8_t *src, ptrdiff_t stride, int h, int x, int y) */
diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c
index 319279490c..a9697d045d 100644
--- a/libavcodec/assdec.c
+++ b/libavcodec/assdec.c
@@ -23,6 +23,7 @@
#include "avcodec.h"
#include "ass.h"
+#include "config_components.h"
#include "internal.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/assenc.c b/libavcodec/assenc.c
index a6d107ded2..b7a88f9d44 100644
--- a/libavcodec/assenc.c
+++ b/libavcodec/assenc.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <string.h>
#include "avcodec.h"
diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c
index 60a4e138c4..36bedb5928 100644
--- a/libavcodec/asvdec.c
+++ b/libavcodec/asvdec.c
@@ -30,6 +30,7 @@
#include "asv.h"
#include "avcodec.h"
#include "blockdsp.h"
+#include "config_components.h"
#include "idctdsp.h"
#include "internal.h"
#include "mpeg12data.h"
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index ff96338e8a..96700aa9e3 100644
--- a/libavcodec/asvenc.c
+++ b/libavcodec/asvenc.c
@@ -23,6 +23,8 @@
* ASUS V1/V2 encoder.
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index 6f9c2ab746..9b0fafe320 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -23,6 +23,7 @@
#include <AudioToolbox/AudioToolbox.h>
#include "config.h"
+#include "config_components.h"
#include "avcodec.h"
#include "ac3_parser_internal.h"
#include "bytestream.h"
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index b354d8d03c..87f0ebb3bd 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/film_grain_params.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
index be321233c8..b4ff15beeb 100644
--- a/libavcodec/binkaudio.c
+++ b/libavcodec/binkaudio.c
@@ -28,6 +28,8 @@
* http://wiki.multimedia.cx/index.php?title=Bink_Audio
*/
+#include "config_components.h"
+
#include "libavutil/channel_layout.h"
#include "libavutil/intfloat.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index 553f020738..d9e95a95b4 100644
--- a/libavcodec/bintext.c
+++ b/libavcodec/bintext.c
@@ -28,6 +28,8 @@
* iCEDraw File decoder
*/
+#include "config_components.h"
+
#include "libavutil/intreadwrite.h"
#include "libavutil/xga_font_data.h"
#include "avcodec.h"
diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 8ba021cb47..60761e6f7d 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -19,6 +19,7 @@
#include <string.h>
#include "config.h"
+#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/log.h"
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index 9202a16a77..4fe34b737c 100644
--- a/libavcodec/crystalhd.c
+++ b/libavcodec/crystalhd.c
@@ -45,6 +45,8 @@
* Includes
****************************************************************************/
+#include "config_components.h"
+
#define _XOPEN_SOURCE 600
#include <inttypes.h>
#include <stdio.h>
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c
index 1b525cd804..f3a3ddda7c 100644
--- a/libavcodec/cuviddec.c
+++ b/libavcodec/cuviddec.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "compat/cuda/dynlink_loader.h"
#include "libavutil/buffer.h"
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c
index cfaa5cfa66..50aa2322e9 100644
--- a/libavcodec/cyuv.c
+++ b/libavcodec/cyuv.c
@@ -28,6 +28,8 @@
* Creative YUV (CYUV) Video Decoder.
*/
+#include "config_components.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libavcodec/dxva2_av1.c b/libavcodec/dxva2_av1.c
index 7b4483f855..228f72ba18 100644
--- a/libavcodec/dxva2_av1.c
+++ b/libavcodec/dxva2_av1.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index 5b23b28f12..6300b1418d 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "dxva2_internal.h"
diff --git a/libavcodec/dxva2_hevc.c b/libavcodec/dxva2_hevc.c
index dbb701fb1c..c91bcf3eeb 100644
--- a/libavcodec/dxva2_hevc.c
+++ b/libavcodec/dxva2_hevc.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "dxva2_internal.h"
diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c
index 136f5f9e06..1989c588dc 100644
--- a/libavcodec/dxva2_mpeg2.c
+++ b/libavcodec/dxva2_mpeg2.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/log.h"
#include "dxva2_internal.h"
diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c
index 5fd6957d0c..cf660a50d2 100644
--- a/libavcodec/dxva2_vc1.c
+++ b/libavcodec/dxva2_vc1.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "dxva2_internal.h"
#include "mpegutils.h"
#include "mpegvideodec.h"
diff --git a/libavcodec/dxva2_vp9.c b/libavcodec/dxva2_vp9.c
index eaeab3af7a..dbe6c08ad1 100644
--- a/libavcodec/dxva2_vp9.c
+++ b/libavcodec/dxva2_vp9.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index e284439972..64d3d85eae 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -33,6 +33,8 @@
* downloaded from http://www.adobe.com/devnet/swf.html.
*/
+#include "config_components.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 082f9b07ad..233fe47b31 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -21,6 +21,9 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include "config_components.h"
+
#include <limits.h>
#include "libavutil/channel_layout.h"
diff --git a/libavcodec/gsmdec.c b/libavcodec/gsmdec.c
index e3c87af513..15eae63e33 100644
--- a/libavcodec/gsmdec.c
+++ b/libavcodec/gsmdec.c
@@ -24,6 +24,8 @@
* GSM decoder
*/
+#include "config_components.h"
+
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "get_bits.h"
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 423036e97b..399b67d76b 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -27,6 +27,8 @@
#define UNCHECKED_BITSTREAM_READER 1
+#include "config_components.h"
+
#include "avcodec.h"
#include "error_resilience.h"
#include "flvdec.h"
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 110a41772a..ee84b3764d 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -25,6 +25,8 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/display.h"
#include "libavutil/film_grain_params.h"
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 856fbca680..cc77c3169d 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -27,6 +27,8 @@
#define UNCHECKED_BITSTREAM_READER 1
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 068750ddb6..4f49d95960 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -23,6 +23,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/display.h"
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index a5e0ef5818..8dc7864dd0 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -32,6 +32,8 @@
#define UNCHECKED_BITSTREAM_READER 1
+#include "config_components.h"
+
#include "avcodec.h"
#include "get_bits.h"
#include "huffyuv.h"
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index 97497a8e75..39a434c720 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -28,6 +28,8 @@
* huffyuv encoder
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "encode.h"
#include "huffyuv.h"
diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c
index fbcec8436c..df3aeb0676 100644
--- a/libavcodec/idctdsp.c
+++ b/libavcodec/idctdsp.c
@@ -17,6 +17,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "avcodec.h"
diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 1dcf0e00ed..6596130727 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -26,6 +26,8 @@
* IFF ACBM/ANIM/DEEP/ILBM/PBM/RGB8/RGBN bitmap decoder
*/
+#include "config_components.h"
+
#include <stdint.h>
#include "libavutil/imgutils.h"
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 89b2ac33e6..924111ea80 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -29,6 +29,7 @@
* Only mono is supported.
*/
+#include "config_components.h"
#include <math.h>
#include <stddef.h>
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index 0c9473af56..f01c942f04 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -29,6 +29,8 @@
#define UNCHECKED_BITSTREAM_READER 1
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index 8bedecb36e..dc8dd8c9ea 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -27,6 +27,8 @@
* H.263 bitstream encoder.
*/
+#include "config_components.h"
+
#include <limits.h>
#include "libavutil/attributes.h"
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index f3b7a8ac1b..b2ef85e5f9 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -37,6 +37,8 @@
* Supports: BGR24 (RGB 24bpp)
*/
+#include "config_components.h"
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/libavcodec/libgsmdec.c b/libavcodec/libgsmdec.c
index aa028bc262..fb9375075f 100644
--- a/libavcodec/libgsmdec.c
+++ b/libavcodec/libgsmdec.c
@@ -28,6 +28,7 @@
// The idiosyncrasies of GSM-in-WAV are explained at http://kbs.cs.tu-berlin.de/~jutta/toast.html
#include "config.h"
+#include "config_components.h"
#if HAVE_GSM_H
#include <gsm.h>
#else
diff --git a/libavcodec/libgsmenc.c b/libavcodec/libgsmenc.c
index 4f473b7cd3..30638f9650 100644
--- a/libavcodec/libgsmenc.c
+++ b/libavcodec/libgsmenc.c
@@ -28,6 +28,7 @@
// The idiosyncrasies of GSM-in-WAV are explained at http://kbs.cs.tu-berlin.de/~jutta/toast.html
#include "config.h"
+#include "config_components.h"
#if HAVE_GSM_H
#include <gsm.h>
#else
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index aa5f0e774e..8b94b854d5 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <inttypes.h>
#include "libavutil/avstring.h"
diff --git a/libavcodec/libvpx.c b/libavcodec/libvpx.c
index cc055a0032..c2b00232d2 100644
--- a/libavcodec/libvpx.c
+++ b/libavcodec/libvpx.c
@@ -21,6 +21,7 @@
#include <vpx/vpx_codec.h>
#include "libvpx.h"
#include "config.h"
+#include "config_components.h"
#if CONFIG_LIBVPX_VP9_ENCODER
#include <vpx/vpx_encoder.h>
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index b2aa205036..f59a03fc2f 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -23,6 +23,8 @@
* VP8/9 decoder support via libvpx
*/
+#include "config_components.h"
+
#define VPX_CODEC_DISABLE_COMPAT 1
#include <vpx/vpx_decoder.h>
#include <vpx/vpx_frame_buffer.h>
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 8f94ba15dc..77b96a5cde 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -23,6 +23,8 @@
* VP8/9 encoder support via libvpx
*/
+#include "config_components.h"
+
#define VPX_DISABLE_CTRL_TYPECHECKS 1
#define VPX_CODEC_DISABLE_COMPAT 1
#include <vpx/vpx_encoder.h>
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index c5e0231b12..b8800db946 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/eval.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/me_cmp.c b/libavcodec/me_cmp.c
index b2f87d2e1b..4c1de44eda 100644
--- a/libavcodec/me_cmp.c
+++ b/libavcodec/me_cmp.c
@@ -29,6 +29,7 @@
#include "me_cmp.h"
#include "mpegvideoenc.h"
#include "config.h"
+#include "config_components.h"
/* (i - 256) * (i - 256) */
const uint32_t ff_square_tab[512] = {
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index e8af00ec00..fc1f6a7c4d 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <stdint.h>
#include <string.h>
diff --git a/libavcodec/metasound_data.c b/libavcodec/metasound_data.c
index 22b2730dda..b2044364fa 100644
--- a/libavcodec/metasound_data.c
+++ b/libavcodec/metasound_data.c
@@ -20,6 +20,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "metasound_data.h"
#if CONFIG_METASOUND_DECODER
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 267609d96a..7ff6985bc4 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -30,6 +30,8 @@
* MJPEG decoder.
*/
+#include "config_components.h"
+
#include "libavutil/display.h"
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 08671b0df7..5290bcf60c 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -30,6 +30,8 @@
* MJPEG encoder.
*/
+#include "config_components.h"
+
#include "libavutil/pixdesc.h"
#include "avcodec.h"
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index d4b8226ec6..c51e0fbed7 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -24,6 +24,8 @@
* MLP decoder
*/
+#include "config_components.h"
+
#include <stdint.h>
#include "avcodec.h"
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 80ebb72758..2e1896d78c 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 9e4e26aa67..7791dcb5fd 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -25,6 +25,8 @@
* MPEG-1/2 decoder
*/
+#include "config_components.h"
+
#define UNCHECKED_BITSTREAM_READER 1
#include <inttypes.h>
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 03692994b5..6110f117c6 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -28,6 +28,7 @@
#include <stdint.h>
#include "config.h"
+#include "config_components.h"
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/log.h"
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 0e0ebb674b..8fb5ec119e 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -22,6 +22,8 @@
#define UNCHECKED_BITSTREAM_READER 1
+#include "config_components.h"
+
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/thread.h"
diff --git a/libavcodec/mpegaudiodec_fixed.c b/libavcodec/mpegaudiodec_fixed.c
index f9f24330fd..ac0b1f3bb3 100644
--- a/libavcodec/mpegaudiodec_fixed.c
+++ b/libavcodec/mpegaudiodec_fixed.c
@@ -19,6 +19,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/samplefmt.h"
#define USE_FLOATS 0
diff --git a/libavcodec/mpegaudiodec_float.c b/libavcodec/mpegaudiodec_float.c
index c7b7839997..912e6d189a 100644
--- a/libavcodec/mpegaudiodec_float.c
+++ b/libavcodec/mpegaudiodec_float.c
@@ -20,6 +20,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/samplefmt.h"
#define USE_FLOATS 1
diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c
index 30b315c450..77b4addaf5 100644
--- a/libavcodec/mpegaudiodec_template.c
+++ b/libavcodec/mpegaudiodec_template.c
@@ -24,6 +24,8 @@
* MPEG Audio decoder
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index fc970e9614..3c793bcc22 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -27,6 +27,8 @@
* The simplest mpeg encoder (well, it was the simplest!).
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index c69114ea15..71c999fab0 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -31,6 +31,8 @@
* The simplest mpeg encoder (well, it was the simplest!).
*/
+#include "config_components.h"
+
#include <stdint.h>
#include "libavutil/internal.h"
diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c
index 876a7375f8..9a450b7c8e 100644
--- a/libavcodec/mpegvideo_motion.c
+++ b/libavcodec/mpegvideo_motion.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index f12586dd64..455436e9c4 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -27,6 +27,8 @@
* MSMPEG4 backend for encoder and decoder
*/
+#include "config_components.h"
+
#include "libavutil/thread.h"
#include "avcodec.h"
diff --git a/libavcodec/msmpeg4dec.c b/libavcodec/msmpeg4dec.c
index 29edd94427..afbeda4fac 100644
--- a/libavcodec/msmpeg4dec.c
+++ b/libavcodec/msmpeg4dec.c
@@ -22,6 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/thread.h"
#include "avcodec.h"
diff --git a/libavcodec/mvcdec.c b/libavcodec/mvcdec.c
index ae5ce4c0d7..410fd95875 100644
--- a/libavcodec/mvcdec.c
+++ b/libavcodec/mvcdec.c
@@ -24,6 +24,8 @@
* Silicon Graphics Motion Video Compressor 1 & 2 decoder
*/
+#include "config_components.h"
+
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
index 251be039a8..edff46d310 100644
--- a/libavcodec/nvdec.c
+++ b/libavcodec/nvdec.c
@@ -21,6 +21,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/common.h"
#include "libavutil/error.h"
diff --git a/libavcodec/nvdec_mjpeg.c b/libavcodec/nvdec_mjpeg.c
index be39d23bae..87f7a99a46 100644
--- a/libavcodec/nvdec_mjpeg.c
+++ b/libavcodec/nvdec_mjpeg.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
#include "mjpegdec.h"
diff --git a/libavcodec/nvdec_mpeg12.c b/libavcodec/nvdec_mpeg12.c
index b8db4250bb..e10735587d 100644
--- a/libavcodec/nvdec_mpeg12.c
+++ b/libavcodec/nvdec_mpeg12.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
#include "mpegvideo.h"
diff --git a/libavcodec/nvdec_vc1.c b/libavcodec/nvdec_vc1.c
index 2355f210de..fae1cb0ab2 100644
--- a/libavcodec/nvdec_vc1.c
+++ b/libavcodec/nvdec_vc1.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
#include "nvdec.h"
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index effd6381da..b6bcec8246 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -20,6 +20,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "nvenc.h"
#include "hevc_sei.h"
diff --git a/libavcodec/options.c b/libavcodec/options.c
index a01214a511..33f11480a7 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -24,6 +24,8 @@
* Options definition for AVCodecContext.
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
#include "libavutil/avassert.h"
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 9cdf3f80d8..e72b4d12b6 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -22,6 +22,8 @@
#ifndef AVCODEC_OPTIONS_TABLE_H
#define AVCODEC_OPTIONS_TABLE_H
+#include "config_components.h"
+
#include <float.h>
#include <limits.h>
#include <stdint.h>
diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c
index a4ab7c46eb..750360d737 100644
--- a/libavcodec/opus_pvq.c
+++ b/libavcodec/opus_pvq.c
@@ -23,6 +23,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "opustab.h"
#include "opus_pvq.h"
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index f0f3d05e92..51b98edae5 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -25,6 +25,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/attributes.h"
#include "libavutil/float_dsp.h"
#include "libavutil/thread.h"
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index a335a29b08..bd6feeadef 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -21,6 +21,8 @@
//#define DEBUG
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/bprint.h"
#include "libavutil/crc.h"
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
index 01f9dade1a..57c426b0c9 100644
--- a/libavcodec/pnmdec.c
+++ b/libavcodec/pnmdec.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
#include "put_bits.h"
diff --git a/libavcodec/pnmenc.c b/libavcodec/pnmenc.c
index 8378f90d08..58337a6499 100644
--- a/libavcodec/pnmenc.c
+++ b/libavcodec/pnmenc.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "libavutil/pixdesc.h"
diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c
index 3ab6666f74..e3016df55d 100644
--- a/libavcodec/proresdec2.c
+++ b/libavcodec/proresdec2.c
@@ -28,6 +28,8 @@
#define LONG_BITSTREAM_READER
+#include "config_components.h"
+
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/qpeldsp.c b/libavcodec/qpeldsp.c
index 6e52b33657..c1eab6120d 100644
--- a/libavcodec/qpeldsp.c
+++ b/libavcodec/qpeldsp.c
@@ -29,6 +29,7 @@
#include <stdint.h>
#include "config.h"
+#include "config_components.h"
#include "libavutil/attributes.h"
#include "copy_block.h"
#include "qpeldsp.h"
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 6236391357..1b5bf85cb6 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 9b71487666..55ce3d2499 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <string.h>
#include <sys/types.h>
#include <mfx/mfxvideo.h>
diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c
index 476f1c0680..3acb5e58c7 100644
--- a/libavcodec/r210dec.c
+++ b/libavcodec/r210dec.c
@@ -21,6 +21,7 @@
*/
#include "avcodec.h"
+#include "config_components.h"
#include "internal.h"
#include "libavutil/bswap.h"
#include "libavutil/common.h"
diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c
index 7a72ba4695..cd349f3b4f 100644
--- a/libavcodec/r210enc.c
+++ b/libavcodec/r210enc.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
diff --git a/libavcodec/rv34_parser.c b/libavcodec/rv34_parser.c
index 03469ed0d1..e17bc8562d 100644
--- a/libavcodec/rv34_parser.c
+++ b/libavcodec/rv34_parser.c
@@ -24,6 +24,8 @@
* RV30/40 parser
*/
+#include "config_components.h"
+
#include "parser.h"
#include "libavutil/intreadwrite.h"
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index 34f1605b29..e4d44ea4d2 100644
--- a/libavcodec/sonic.c
+++ b/libavcodec/sonic.c
@@ -18,6 +18,9 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include "config_components.h"
+
#include "avcodec.h"
#include "encode.h"
#include "get_bits.h"
diff --git a/libavcodec/sp5xdec.c b/libavcodec/sp5xdec.c
index a1b43f8f80..e17e0d97b9 100644
--- a/libavcodec/sp5xdec.c
+++ b/libavcodec/sp5xdec.c
@@ -24,6 +24,8 @@
* Sunplus JPEG decoder (SP5X).
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
#include "mjpeg.h"
diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c
index fd4ea0d75e..77c5e46e4b 100644
--- a/libavcodec/speedhq.c
+++ b/libavcodec/speedhq.c
@@ -27,6 +27,7 @@
#define BITSTREAM_READER_LE
#include "config.h"
+#include "config_components.h"
#include "libavutil/attributes.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/speedhqenc.c b/libavcodec/speedhqenc.c
index e59af7f0d3..cd7b6e1763 100644
--- a/libavcodec/speedhqenc.c
+++ b/libavcodec/speedhqenc.c
@@ -27,6 +27,8 @@
* SpeedHQ encoder.
*/
+#include "config_components.h"
+
#include "libavutil/thread.h"
#include "avcodec.h"
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c
index 4f16226b83..f7c131ff3d 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
diff --git a/libavcodec/srtenc.c b/libavcodec/srtenc.c
index 2e3ac55770..508770e319 100644
--- a/libavcodec/srtenc.c
+++ b/libavcodec/srtenc.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <stdarg.h>
#include "avcodec.h"
#include "libavutil/avstring.h"
diff --git a/libavcodec/tests/dct.c b/libavcodec/tests/dct.c
index eab39e9468..c847af2f11 100644
--- a/libavcodec/tests/dct.c
+++ b/libavcodec/tests/dct.c
@@ -26,6 +26,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/libavcodec/tests/x86/dct.c b/libavcodec/tests/x86/dct.c
index 104a0f8e0c..b332c9642d 100644
--- a/libavcodec/tests/x86/dct.c
+++ b/libavcodec/tests/x86/dct.c
@@ -17,6 +17,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/textdec.c b/libavcodec/textdec.c
index 308553660a..420fcd1b14 100644
--- a/libavcodec/textdec.c
+++ b/libavcodec/textdec.c
@@ -23,6 +23,8 @@
* Raw subtitles decoder
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "ass.h"
#include "internal.h"
diff --git a/libavcodec/v408dec.c b/libavcodec/v408dec.c
index 749b3b65e5..f1b84421b1 100644
--- a/libavcodec/v408dec.c
+++ b/libavcodec/v408dec.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c
index 31bf48406c..50766772c2 100644
--- a/libavcodec/v408enc.c
+++ b/libavcodec/v408enc.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "encode.h"
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index da0e72b10b..a7abddb06b 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c
index 8c6e881702..ffd6cb1c25 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <inttypes.h>
#include <string.h>
diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
index d2d9b9b322..ca3f3b22f6 100644
--- a/libavcodec/vaapi_mpeg4.c
+++ b/libavcodec/vaapi_mpeg4.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "h263.h"
#include "hwconfig.h"
#include "mpeg4videodec.h"
diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c
index 76e0a1e941..d82336a3b3 100644
--- a/libavcodec/vaapi_vc1.c
+++ b/libavcodec/vaapi_vc1.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "hwconfig.h"
#include "mpegvideodec.h"
#include "vaapi_decode.h"
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index d9939a8ba1..1c92b9d401 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -26,6 +26,8 @@
* VC-1 and WMV3 decoder
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "blockdsp.h"
#include "get_bits.h"
diff --git a/libavcodec/vc1dsp.c b/libavcodec/vc1dsp.c
index 04fc8b12f3..a29b91bf3d 100644
--- a/libavcodec/vc1dsp.c
+++ b/libavcodec/vc1dsp.c
@@ -24,6 +24,8 @@
* VC-1 and WMV3 decoder
*/
+#include "config_components.h"
+
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index 5072071c70..0bb793c010 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <limits.h>
#include "avcodec.h"
diff --git a/libavcodec/vdpau_mpeg12.c b/libavcodec/vdpau_mpeg12.c
index 72220ffb4e..354239cad5 100644
--- a/libavcodec/vdpau_mpeg12.c
+++ b/libavcodec/vdpau_mpeg12.c
@@ -21,6 +21,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <vdpau/vdpau.h>
#include "avcodec.h"
diff --git a/libavcodec/vdpau_vc1.c b/libavcodec/vdpau_vc1.c
index 96c91b58be..00b33f420b 100644
--- a/libavcodec/vdpau_vc1.c
+++ b/libavcodec/vdpau_vc1.c
@@ -21,6 +21,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include <vdpau/vdpau.h>
#include "avcodec.h"
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 29c781cda4..9083f6ff29 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -21,6 +21,7 @@
*/
#include "config.h"
+#include "config_components.h"
#include "videotoolbox.h"
#include "libavutil/hwcontext_videotoolbox.h"
#include "vt_internal.h"
diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c
index 194ae13da3..a7d15d4ce9 100644
--- a/libavcodec/vorbis_parser.c
+++ b/libavcodec/vorbis_parser.c
@@ -25,6 +25,8 @@
* Determines the duration for each packet.
*/
+#include "config_components.h"
+
#include "libavutil/log.h"
#include "get_bits.h"
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index e2418eb6fa..64532a70db 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -30,6 +30,8 @@
* Theora decoder by Alex Beregszaszi
*/
+#include "config_components.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libavcodec/vp56dsp.c b/libavcodec/vp56dsp.c
index de6803e0fb..d368e3292d 100644
--- a/libavcodec/vp56dsp.c
+++ b/libavcodec/vp56dsp.c
@@ -22,6 +22,7 @@
#include <stdint.h>
#include "config.h"
+#include "config_components.h"
#include "libavutil/attributes.h"
#include "vp56dsp.h"
#include "libavutil/common.h"
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index d779804e64..08338bc247 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -24,6 +24,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/imgutils.h"
#include "libavutil/mem_internal.h"
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c
index 732a483b62..23f49b2c25 100644
--- a/libavcodec/vp8dsp.c
+++ b/libavcodec/vp8dsp.c
@@ -25,6 +25,8 @@
* VP8 compatible video decoder
*/
+#include "config_components.h"
+
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 7ef10f7a80..5da1b8a72e 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "avcodec.h"
#include "get_bits.h"
#include "hwconfig.h"
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index 8b0893c74e..47e0f2c105 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -33,6 +33,8 @@
* should be 4 extra bytes for v1 data and 6 extra bytes for v2 data.
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/ffmath.h"
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index 4eeaefffba..daf161251c 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/ffmath.h"
diff --git a/libavcodec/x86/flacdsp_init.c b/libavcodec/x86/flacdsp_init.c
index 6315b6903e..ed2e5ed15b 100644
--- a/libavcodec/x86/flacdsp_init.c
+++ b/libavcodec/x86/flacdsp_init.c
@@ -22,6 +22,7 @@
#include "libavcodec/flacdsp.h"
#include "libavutil/x86/cpu.h"
#include "config.h"
+#include "config_components.h"
void ff_flac_lpc_32_sse4(int32_t *samples, const int coeffs[32], int order,
int qlevel, int len);
diff --git a/libavcodec/x86/hpeldsp_init.c b/libavcodec/x86/hpeldsp_init.c
index d89928cec6..6336587281 100644
--- a/libavcodec/x86/hpeldsp_init.c
+++ b/libavcodec/x86/hpeldsp_init.c
@@ -22,6 +22,8 @@
* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
*/
+#include "config_components.h"
+
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/x86/cpu.h"