summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/8bps.c2
-rw-r--r--libavcodec/8svx.c1
-rw-r--r--libavcodec/a64multienc.c1
-rw-r--r--libavcodec/aac_ac3_parser.c1
-rw-r--r--libavcodec/acelp_filters.c1
-rw-r--r--libavcodec/acelp_pitch_delay.c1
-rw-r--r--libavcodec/acelp_vectors.c2
-rw-r--r--libavcodec/adx.c1
-rw-r--r--libavcodec/allcodecs.c1
-rw-r--r--libavcodec/amr.h2
-rw-r--r--libavcodec/amrwbdec.c1
-rw-r--r--libavcodec/ansi.c1
-rw-r--r--libavcodec/api-example.c1
-rw-r--r--libavcodec/ass.c1
-rw-r--r--libavcodec/assdec.c4
-rw-r--r--libavcodec/assenc.c4
-rw-r--r--libavcodec/atrac.c1
-rw-r--r--libavcodec/audio_frame_queue.c1
-rw-r--r--libavcodec/audioconvert.c1
-rw-r--r--libavcodec/aura.c1
-rw-r--r--libavcodec/avpacket.c3
-rw-r--r--libavcodec/bitstream_filter.c3
-rw-r--r--libavcodec/cavsdsp.c1
-rw-r--r--libavcodec/celp_filters.c1
-rw-r--r--libavcodec/celp_math.c1
-rw-r--r--libavcodec/cinepak.c1
-rw-r--r--libavcodec/codec_desc.c1
-rw-r--r--libavcodec/cscd.c1
-rw-r--r--libavcodec/cyuv.c1
-rw-r--r--libavcodec/dct.c1
-rw-r--r--libavcodec/dirac_parser.c3
-rw-r--r--libavcodec/dnxhddata.c1
-rw-r--r--libavcodec/dpxenc.c1
-rw-r--r--libavcodec/dump_extradata_bsf.c3
-rw-r--r--libavcodec/dv_profile.c1
-rw-r--r--libavcodec/dvdsub_parser.c3
-rw-r--r--libavcodec/dwt.c1
-rw-r--r--libavcodec/dxa.c1
-rw-r--r--libavcodec/dxtory.c1
-rw-r--r--libavcodec/eacmv.c1
-rw-r--r--libavcodec/eaidct.c1
-rw-r--r--libavcodec/elbg.c1
-rw-r--r--libavcodec/faandct.c2
-rw-r--r--libavcodec/faanidct.c1
-rw-r--r--libavcodec/fmtconvert.c1
-rw-r--r--libavcodec/g722enc.c1
-rw-r--r--libavcodec/h264_mp4toannexb_bsf.c3
-rw-r--r--libavcodec/h264dsp.c1
-rw-r--r--libavcodec/h264idct_template.c1
-rw-r--r--libavcodec/idcinvideo.c1
-rw-r--r--libavcodec/iirfilter.c1
-rw-r--r--libavcodec/imgconvert.c1
-rw-r--r--libavcodec/intrax8dsp.c1
-rw-r--r--libavcodec/jpegls.h1
-rw-r--r--libavcodec/kgv1dec.c1
-rw-r--r--libavcodec/lclenc.c2
-rw-r--r--libavcodec/libfaac.c1
-rw-r--r--libavcodec/libfdk-aacenc.c1
-rw-r--r--libavcodec/libgsm.c1
-rw-r--r--libavcodec/libilbc.c1
-rw-r--r--libavcodec/libmp3lame.c1
-rw-r--r--libavcodec/libopencore-amr.c1
-rw-r--r--libavcodec/libspeexdec.c1
-rw-r--r--libavcodec/libspeexenc.c1
-rw-r--r--libavcodec/libtheoraenc.c1
-rw-r--r--libavcodec/libvo-amrwbenc.c4
-rw-r--r--libavcodec/libvpxdec.c1
-rw-r--r--libavcodec/libvpxenc.c1
-rw-r--r--libavcodec/libx264.c2
-rw-r--r--libavcodec/lpc.c1
-rw-r--r--libavcodec/lzw.c1
-rw-r--r--libavcodec/mace.c1
-rw-r--r--libavcodec/motion-test.c2
-rw-r--r--libavcodec/movsub_bsf.c1
-rw-r--r--libavcodec/mp3_header_compress_bsf.c1
-rw-r--r--libavcodec/mp3_header_decompress_bsf.c1
-rw-r--r--libavcodec/mpegaudio_parser.c1
-rw-r--r--libavcodec/msvideo1.c1
-rw-r--r--libavcodec/noise_bsf.c4
-rw-r--r--libavcodec/nuv.c1
-rw-r--r--libavcodec/options.c2
-rw-r--r--libavcodec/options_table.h1
-rw-r--r--libavcodec/parser.c3
-rw-r--r--libavcodec/pnm.c3
-rw-r--r--libavcodec/ppc/fmtconvert_altivec.c1
-rw-r--r--libavcodec/ppc/gmc_altivec.c1
-rw-r--r--libavcodec/ppc/h264_altivec_template.c2
-rw-r--r--libavcodec/ppc/vp8dsp_altivec.c1
-rw-r--r--libavcodec/proresdsp.c1
-rw-r--r--libavcodec/psymodel.c3
-rw-r--r--libavcodec/pthread.c1
-rw-r--r--libavcodec/ptx.c1
-rw-r--r--libavcodec/qdrw.c1
-rw-r--r--libavcodec/r210dec.c1
-rw-r--r--libavcodec/ra144.c1
-rw-r--r--libavcodec/ra288.h1
-rw-r--r--libavcodec/raw.c1
-rw-r--r--libavcodec/rawdec.c1
-rw-r--r--libavcodec/rawenc.c1
-rw-r--r--libavcodec/resample.c3
-rw-r--r--libavcodec/resample2.c1
-rw-r--r--libavcodec/rl2.c2
-rw-r--r--libavcodec/rle.c1
-rw-r--r--libavcodec/rpza.c1
-rw-r--r--libavcodec/rtjpeg.h1
-rw-r--r--libavcodec/rv34dsp.c1
-rw-r--r--libavcodec/rv40dsp.c1
-rw-r--r--libavcodec/s302m.c1
-rw-r--r--libavcodec/sinewin_tablegen.h1
-rw-r--r--libavcodec/sipr.h1
-rw-r--r--libavcodec/sipr16k.c1
-rw-r--r--libavcodec/srtdec.c1
-rw-r--r--libavcodec/sunrast.c1
-rw-r--r--libavcodec/targaenc.c3
-rw-r--r--libavcodec/tiff.c1
-rw-r--r--libavcodec/tiffenc.c1
-rw-r--r--libavcodec/tmv.c3
-rw-r--r--libavcodec/truemotion1.c2
-rw-r--r--libavcodec/v210dec.c2
-rw-r--r--libavcodec/v210x.c2
-rw-r--r--libavcodec/v410dec.c1
-rw-r--r--libavcodec/v410enc.c1
-rw-r--r--libavcodec/vc1dsp.c1
-rw-r--r--libavcodec/vcr1.c1
-rw-r--r--libavcodec/vmdav.c1
-rw-r--r--libavcodec/vmnc.c1
-rw-r--r--libavcodec/vorbis_data.c1
-rw-r--r--libavcodec/vp3dsp.c1
-rw-r--r--libavcodec/vp56dsp.c1
-rw-r--r--libavcodec/vp8dsp.c1
-rw-r--r--libavcodec/ws-snd1.c1
-rw-r--r--libavcodec/x86/idct_mmx_xvid.c3
-rw-r--r--libavcodec/x86/idct_sse2_xvid.c2
-rw-r--r--libavcodec/x86/lpc_mmx.c1
-rw-r--r--libavcodec/x86/mlpdsp.c1
-rw-r--r--libavcodec/x86/motion_est_mmx.c2
-rw-r--r--libavcodec/x86/rv40dsp_init.c1
-rw-r--r--libavcodec/x86/simple_idct_mmx.c2
-rw-r--r--libavcodec/x86/vc1dsp_mmx.c2
-rw-r--r--libavcodec/x86/vp8dsp-init.c1
-rw-r--r--libavcodec/xbmenc.c1
-rw-r--r--libavcodec/xl.c1
-rw-r--r--libavcodec/zerocodec.c1
-rw-r--r--libavcodec/zmbv.c1
-rw-r--r--libavcodec/zmbvenc.c1
145 files changed, 200 insertions, 0 deletions
diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c
index a686b728b9..12e9358ad1 100644
--- a/libavcodec/8bps.c
+++ b/libavcodec/8bps.c
@@ -33,7 +33,9 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index 3c0c0911a5..328fc65b41 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -29,6 +29,7 @@
*/
#include "avcodec.h"
+#include "libavutil/common.h"
/** decoder context */
typedef struct EightSvxContext {
diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 4e604dc8bc..c9d3b3c44b 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -29,6 +29,7 @@
#include "a64tables.h"
#include "elbg.h"
#include "internal.h"
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#define DITHERSTEPS 8
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c
index fc51612fe5..b17cd4d52f 100644
--- a/libavcodec/aac_ac3_parser.c
+++ b/libavcodec/aac_ac3_parser.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "parser.h"
#include "aac_ac3_parser.h"
diff --git a/libavcodec/acelp_filters.c b/libavcodec/acelp_filters.c
index 16e2da1cc1..93bec6589a 100644
--- a/libavcodec/acelp_filters.c
+++ b/libavcodec/acelp_filters.c
@@ -22,6 +22,7 @@
#include <inttypes.h>
+#include "libavutil/common.h"
#include "avcodec.h"
#include "acelp_filters.h"
diff --git a/libavcodec/acelp_pitch_delay.c b/libavcodec/acelp_pitch_delay.c
index 214a272c32..8aa500869b 100644
--- a/libavcodec/acelp_pitch_delay.c
+++ b/libavcodec/acelp_pitch_delay.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "avcodec.h"
#include "dsputil.h"
diff --git a/libavcodec/acelp_vectors.c b/libavcodec/acelp_vectors.c
index b7c05e743f..4b378cab65 100644
--- a/libavcodec/acelp_vectors.c
+++ b/libavcodec/acelp_vectors.c
@@ -21,6 +21,8 @@
*/
#include <inttypes.h>
+
+#include "libavutil/common.h"
#include "avcodec.h"
#include "acelp_vectors.h"
#include "celp_math.h"
diff --git a/libavcodec/adx.c b/libavcodec/adx.c
index 1e5d89c991..870216c606 100644
--- a/libavcodec/adx.c
+++ b/libavcodec/adx.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "adx.h"
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index f85892b34c..755b4ab7ee 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -25,6 +25,7 @@
*/
#include "avcodec.h"
+#include "config.h"
#define REGISTER_HWACCEL(X,x) { \
extern AVHWAccel ff_##x##_hwaccel; \
diff --git a/libavcodec/amr.h b/libavcodec/amr.h
index 9498d57a9b..676c9630df 100644
--- a/libavcodec/amr.h
+++ b/libavcodec/amr.h
@@ -23,6 +23,8 @@
#ifndef AVCODEC_AMR_H
#define AVCODEC_AMR_H
+#include <string.h>
+
#include "avcodec.h"
#ifdef AMR_USE_16BIT_TABLES
diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c
index 4dc90da038..4885c2d6a2 100644
--- a/libavcodec/amrwbdec.c
+++ b/libavcodec/amrwbdec.c
@@ -24,6 +24,7 @@
* AMR wideband decoder
*/
+#include "libavutil/common.h"
#include "libavutil/lfg.h"
#include "avcodec.h"
diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c
index bd58dd1391..04a1106605 100644
--- a/libavcodec/ansi.c
+++ b/libavcodec/ansi.c
@@ -24,6 +24,7 @@
* ASCII/ANSI art decoder
*/
+#include "libavutil/common.h"
#include "libavutil/lfg.h"
#include "avcodec.h"
#include "cga_data.h"
diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c
index 4db92d3702..d0253542dd 100644
--- a/libavcodec/api-example.c
+++ b/libavcodec/api-example.c
@@ -38,6 +38,7 @@
#include "libavcodec/avcodec.h"
#include "libavutil/audioconvert.h"
+#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/samplefmt.h"
diff --git a/libavcodec/ass.c b/libavcodec/ass.c
index 327a77bb45..3585b93d03 100644
--- a/libavcodec/ass.c
+++ b/libavcodec/ass.c
@@ -22,6 +22,7 @@
#include "avcodec.h"
#include "ass.h"
#include "libavutil/avstring.h"
+#include "libavutil/common.h"
/**
* Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS.
diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c
index 225ecebfb7..7a69582aa2 100644
--- a/libavcodec/assdec.c
+++ b/libavcodec/assdec.c
@@ -19,8 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "avcodec.h"
#include "ass.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
static av_cold int ass_decode_init(AVCodecContext *avctx)
{
diff --git a/libavcodec/assenc.c b/libavcodec/assenc.c
index 28ca6ddb1b..6b4462349c 100644
--- a/libavcodec/assenc.c
+++ b/libavcodec/assenc.c
@@ -19,8 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "avcodec.h"
#include "libavutil/avstring.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
static av_cold int ass_encode_init(AVCodecContext *avctx)
{
diff --git a/libavcodec/atrac.c b/libavcodec/atrac.c
index b9b33aad48..a772e7db48 100644
--- a/libavcodec/atrac.c
+++ b/libavcodec/atrac.c
@@ -27,6 +27,7 @@
#include <math.h>
#include <stddef.h>
#include <stdio.h>
+#include <string.h>
#include "avcodec.h"
#include "dsputil.h"
diff --git a/libavcodec/audio_frame_queue.c b/libavcodec/audio_frame_queue.c
index 156c3a109b..1cd96a7bcd 100644
--- a/libavcodec/audio_frame_queue.c
+++ b/libavcodec/audio_frame_queue.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "internal.h"
#include "audio_frame_queue.h"
diff --git a/libavcodec/audioconvert.c b/libavcodec/audioconvert.c
index 112e22096b..3714de78f1 100644
--- a/libavcodec/audioconvert.c
+++ b/libavcodec/audioconvert.c
@@ -26,6 +26,7 @@
*/
#include "libavutil/avstring.h"
+#include "libavutil/common.h"
#include "libavutil/libm.h"
#include "libavutil/samplefmt.h"
#include "avcodec.h"
diff --git a/libavcodec/aura.c b/libavcodec/aura.c
index e015aac6f2..68e0c7a8a9 100644
--- a/libavcodec/aura.c
+++ b/libavcodec/aura.c
@@ -24,6 +24,7 @@
*/
#include "avcodec.h"
+#include "libavutil/internal.h"
typedef struct AuraDecodeContext {
AVCodecContext *avctx;
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 4b85081e7b..3344cf9f0b 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -19,7 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "libavutil/avassert.h"
+#include "libavutil/mem.h"
#include "avcodec.h"
void av_destruct_packet_nofree(AVPacket *pkt)
diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c
index ee56174b2c..b2d61da159 100644
--- a/libavcodec/bitstream_filter.c
+++ b/libavcodec/bitstream_filter.c
@@ -18,7 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "avcodec.h"
+#include "libavutil/mem.h"
static AVBitStreamFilter *first_bitstream_filter= NULL;
diff --git a/libavcodec/cavsdsp.c b/libavcodec/cavsdsp.c
index 04e521be75..983d9d7f22 100644
--- a/libavcodec/cavsdsp.c
+++ b/libavcodec/cavsdsp.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include "dsputil.h"
#include "cavsdsp.h"
+#include "libavutil/common.h"
/*****************************************************************************
*
diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c
index d764d19219..381ffa4894 100644
--- a/libavcodec/celp_filters.c
+++ b/libavcodec/celp_filters.c
@@ -24,6 +24,7 @@
#include "avcodec.h"
#include "celp_filters.h"
+#include "libavutil/common.h"
void ff_celp_convolve_circ(int16_t* fc_out, const int16_t* fc_in,
const int16_t* filter, int len)
diff --git a/libavcodec/celp_math.c b/libavcodec/celp_math.c
index 8d36d4e900..a34508f85c 100644
--- a/libavcodec/celp_math.c
+++ b/libavcodec/celp_math.c
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "celp_math.h"
+#include "libavutil/common.h"
/**
* Cosine table: base_cos[i] = (1<<15) * cos(i*PI/64)
diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c
index 9c29f5e5e3..2b069925cb 100644
--- a/libavcodec/cinepak.c
+++ b/libavcodec/cinepak.c
@@ -34,6 +34,7 @@
#include <stdlib.h>
#include <string.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
index a0c1fd27e4..2ace53b4d0 100644
--- a/libavcodec/codec_desc.c
+++ b/libavcodec/codec_desc.c
@@ -18,6 +18,7 @@
#include "avcodec.h"
+#include "libavutil/common.h"
#include "libavutil/internal.h"
static const AVCodecDescriptor codec_descriptors[] = {
diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c
index 6c84f03b4a..1e210efb78 100644
--- a/libavcodec/cscd.c
+++ b/libavcodec/cscd.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include "avcodec.h"
+#include "libavutil/common.h"
#if CONFIG_ZLIB
#include <zlib.h>
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c
index 4e30538381..1cf7013e8e 100644
--- a/libavcodec/cyuv.c
+++ b/libavcodec/cyuv.c
@@ -34,6 +34,7 @@
#include "avcodec.h"
#include "dsputil.h"
+#include "libavutil/internal.h"
typedef struct CyuvDecodeContext {
diff --git a/libavcodec/dct.c b/libavcodec/dct.c
index e65671e753..73716d39c9 100644
--- a/libavcodec/dct.c
+++ b/libavcodec/dct.c
@@ -28,6 +28,7 @@
*/
#include <math.h>
+#include <string.h>
#include "libavutil/mathematics.h"
#include "dct.h"
diff --git a/libavcodec/dirac_parser.c b/libavcodec/dirac_parser.c
index 4fd47ae7da..46f5430c90 100644
--- a/libavcodec/dirac_parser.c
+++ b/libavcodec/dirac_parser.c
@@ -27,7 +27,10 @@
* @author Marco Gerards <marco@gnu.org>
*/
+#include <string.h>
+
#include "libavutil/intreadwrite.h"
+#include "libavutil/mem.h"
#include "parser.h"
#define DIRAC_PARSE_INFO_PREFIX 0x42424344
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
index 576e85e05c..96895daf62 100644
--- a/libavcodec/dnxhddata.c
+++ b/libavcodec/dnxhddata.c
@@ -21,6 +21,7 @@
#include "avcodec.h"
#include "dnxhddata.h"
+#include "libavutil/common.h"
static const uint8_t dnxhd_1235_luma_weight[] = {
0, 32, 32, 32, 33, 35, 38, 39,
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c
index a48a898c83..ce84df0360 100644
--- a/libavcodec/dpxenc.c
+++ b/libavcodec/dpxenc.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/dump_extradata_bsf.c b/libavcodec/dump_extradata_bsf.c
index ba77b15c6b..17d9434172 100644
--- a/libavcodec/dump_extradata_bsf.c
+++ b/libavcodec/dump_extradata_bsf.c
@@ -18,7 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "avcodec.h"
+#include "libavutil/mem.h"
static int dump_extradata(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
diff --git a/libavcodec/dv_profile.c b/libavcodec/dv_profile.c
index 8b604c2ecb..b494f97fc1 100644
--- a/libavcodec/dv_profile.c
+++ b/libavcodec/dv_profile.c
@@ -18,6 +18,7 @@
#include <stdint.h>
+#include "libavutil/common.h"
#include "libavutil/log.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
diff --git a/libavcodec/dvdsub_parser.c b/libavcodec/dvdsub_parser.c
index 76978cd816..2ad3b33602 100644
--- a/libavcodec/dvdsub_parser.c
+++ b/libavcodec/dvdsub_parser.c
@@ -19,7 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "libavutil/intreadwrite.h"
+#include "libavutil/mem.h"
#include "avcodec.h"
/* parser definition */
diff --git a/libavcodec/dwt.c b/libavcodec/dwt.c
index 56e4a572ea..3f8a53d419 100644
--- a/libavcodec/dwt.c
+++ b/libavcodec/dwt.c
@@ -19,6 +19,7 @@
*/
#include "libavutil/attributes.h"
+#include "libavutil/common.h"
#include "dsputil.h"
#include "dwt.h"
diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index 966c2fbbb8..a6e2a11155 100644
--- a/libavcodec/dxa.c
+++ b/libavcodec/dxa.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/dxtory.c b/libavcodec/dxtory.c
index d11b942ff8..83abc7253a 100644
--- a/libavcodec/dxtory.c
+++ b/libavcodec/dxtory.c
@@ -21,6 +21,7 @@
*/
#include "avcodec.h"
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
static av_cold int decode_init(AVCodecContext *avctx)
diff --git a/libavcodec/eacmv.c b/libavcodec/eacmv.c
index b3cd25b94c..50cb686fbd 100644
--- a/libavcodec/eacmv.c
+++ b/libavcodec/eacmv.c
@@ -28,6 +28,7 @@
* http://wiki.multimedia.cx/index.php?title=Electronic_Arts_CMV
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/eaidct.c b/libavcodec/eaidct.c
index 5e628b09d0..9f2d5cc6be 100644
--- a/libavcodec/eaidct.c
+++ b/libavcodec/eaidct.c
@@ -27,6 +27,7 @@
#include "dsputil.h"
#include "eaidct.h"
+#include "libavutil/common.h"
#define ASQRT 181 /* (1/sqrt(2))<<8 */
#define A4 669 /* cos(pi/8)*sqrt(2)<<9 */
diff --git a/libavcodec/elbg.c b/libavcodec/elbg.c
index 030c3a68c4..31195f3a9d 100644
--- a/libavcodec/elbg.c
+++ b/libavcodec/elbg.c
@@ -25,6 +25,7 @@
#include <string.h>
+#include "libavutil/common.h"
#include "libavutil/lfg.h"
#include "elbg.h"
#include "avcodec.h"
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c
index eaf4b65f41..1379394aa9 100644
--- a/libavcodec/faandct.c
+++ b/libavcodec/faandct.c
@@ -27,6 +27,8 @@
#include "dsputil.h"
#include "faandct.h"
+#include "libavutil/internal.h"
+#include "libavutil/libm.h"
#define FLOAT float
diff --git a/libavcodec/faanidct.c b/libavcodec/faanidct.c
index 0b9b458284..cd8ca273ad 100644
--- a/libavcodec/faanidct.c
+++ b/libavcodec/faanidct.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "faanidct.h"
+#include "libavutil/common.h"
/* To allow switching to double. */
#define FLOAT float
diff --git a/libavcodec/fmtconvert.c b/libavcodec/fmtconvert.c
index 58fece70b2..c90ffc110c 100644
--- a/libavcodec/fmtconvert.c
+++ b/libavcodec/fmtconvert.c
@@ -22,6 +22,7 @@
#include "avcodec.h"
#include "fmtconvert.h"
+#include "libavutil/common.h"
static void int32_to_float_fmul_scalar_c(float *dst, const int *src, float mul, int len){
int i;
diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c
index efc85400d3..cc879367fd 100644
--- a/libavcodec/g722enc.c
+++ b/libavcodec/g722enc.c
@@ -30,6 +30,7 @@
#include "avcodec.h"
#include "internal.h"
#include "g722.h"
+#include "libavutil/common.h"
#define FREEZE_INTERVAL 128
diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index eceebebecb..276751eb65 100644
--- a/libavcodec/h264_mp4toannexb_bsf.c
+++ b/libavcodec/h264_mp4toannexb_bsf.c
@@ -19,7 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "libavutil/intreadwrite.h"
+#include "libavutil/mem.h"
#include "avcodec.h"
typedef struct H264BSFContext {
diff --git a/libavcodec/h264dsp.c b/libavcodec/h264dsp.c
index ba967079fb..ec59e4a7ae 100644
--- a/libavcodec/h264dsp.c
+++ b/libavcodec/h264dsp.c
@@ -28,6 +28,7 @@
#include <stdint.h>
#include "avcodec.h"
#include "h264dsp.h"
+#include "libavutil/common.h"
#define BIT_DEPTH 8
#include "h264dsp_template.c"
diff --git a/libavcodec/h264idct_template.c b/libavcodec/h264idct_template.c
index e476f89a6f..554483c057 100644
--- a/libavcodec/h264idct_template.c
+++ b/libavcodec/h264idct_template.c
@@ -26,6 +26,7 @@
*/
#include "bit_depth_template.c"
+#include "libavutil/common.h"
#ifndef AVCODEC_H264IDCT_INTERNAL_H
#define AVCODEC_H264IDCT_INTERNAL_H
diff --git a/libavcodec/idcinvideo.c b/libavcodec/idcinvideo.c
index 4a3df46cba..b6b9eb710f 100644
--- a/libavcodec/idcinvideo.c
+++ b/libavcodec/idcinvideo.c
@@ -49,6 +49,7 @@
#include <string.h>
#include "avcodec.h"
+#include "libavutil/internal.h"
#define HUFFMAN_TABLE_SIZE 64 * 1024
#define HUF_TOKENS 256
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c
index 34d3962807..f9b9ff60d4 100644
--- a/libavcodec/iirfilter.c
+++ b/libavcodec/iirfilter.c
@@ -26,6 +26,7 @@
#include "iirfilter.h"
#include <math.h>
+#include "libavutil/common.h"
/**
* IIR filter global parameters
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index a6c832d5c9..62ec35a47e 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -35,6 +35,7 @@
#include "internal.h"
#include "imgconvert.h"
#include "libavutil/colorspace.h"
+#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
diff --git a/libavcodec/intrax8dsp.c b/libavcodec/intrax8dsp.c
index 0e79276b82..5ba210e7f5 100644
--- a/libavcodec/intrax8dsp.c
+++ b/libavcodec/intrax8dsp.c
@@ -22,6 +22,7 @@
*/
#include "dsputil.h"
+#include "libavutil/common.h"
/*
area positions, #3 is 1 pixel only, other are 8 pixels
diff --git a/libavcodec/jpegls.h b/libavcodec/jpegls.h
index 1c1817e833..18c71a82d0 100644
--- a/libavcodec/jpegls.h
+++ b/libavcodec/jpegls.h
@@ -29,6 +29,7 @@
#define AVCODEC_JPEGLS_H
#include "avcodec.h"
+#include "libavutil/common.h"
typedef struct JpeglsContext{
AVCodecContext *avctx;
diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c
index 5977e83635..d19563f7e4 100644
--- a/libavcodec/kgv1dec.c
+++ b/libavcodec/kgv1dec.c
@@ -24,6 +24,7 @@
* Kega Game Video decoder
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index c5c2ff2acb..6540e9e82f 100644
--- a/libavcodec/lclenc.c
+++ b/libavcodec/lclenc.c
@@ -43,6 +43,8 @@
#include "avcodec.h"
#include "lcl.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include <zlib.h>
diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c
index 19f55aac1d..7297179887 100644
--- a/libavcodec/libfaac.c
+++ b/libavcodec/libfaac.c
@@ -30,6 +30,7 @@
#include "audio_frame_queue.h"
#include "internal.h"
#include "libavutil/audioconvert.h"
+#include "libavutil/common.h"
/* libfaac has an encoder delay of 1024 samples */
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index 659874bf64..66c93fc2e3 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -25,6 +25,7 @@
#include "audio_frame_queue.h"
#include "internal.h"
#include "libavutil/audioconvert.h"
+#include "libavutil/common.h"
#include "libavutil/opt.h"
typedef struct AACContext {
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index c35acd3bb5..e6d435ba05 100644
--- a/libavcodec/libgsm.c
+++ b/libavcodec/libgsm.c
@@ -32,6 +32,7 @@
#include "avcodec.h"
#include "internal.h"
#include "gsm.h"
+#include "libavutil/common.h"
static av_cold int libgsm_encode_init(AVCodecContext *avctx) {
if (avctx->channels > 1) {
diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c
index 5a98012a96..d17560dd6a 100644
--- a/libavcodec/libilbc.c
+++ b/libavcodec/libilbc.c
@@ -22,6 +22,7 @@
#include <ilbc.h>
#include "avcodec.h"
+#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "internal.h"
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 75b6c6758a..d754f46e7a 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -27,6 +27,7 @@
#include <lame/lame.h>
#include "libavutil/audioconvert.h"
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 80b79f0184..7f45450ba6 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -21,6 +21,7 @@
#include "avcodec.h"
#include "libavutil/avstring.h"
+#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "audio_frame_queue.h"
#include "internal.h"
diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index e0ce7bb00e..a63d394731 100644
--- a/libavcodec/libspeexdec.c
+++ b/libavcodec/libspeexdec.c
@@ -23,6 +23,7 @@
#include <speex/speex_stereo.h>
#include <speex/speex_callbacks.h>
#include "avcodec.h"
+#include "libavutil/common.h"
typedef struct {
AVFrame frame;
diff --git a/libavcodec/libspeexenc.c b/libavcodec/libspeexenc.c
index 18c43adf8a..d61a512df5 100644
--- a/libavcodec/libspeexenc.c
+++ b/libavcodec/libspeexenc.c
@@ -69,6 +69,7 @@
#include <speex/speex_stereo.h>
#include "libavutil/audioconvert.h"
+#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index bb2bd087b0..3f861e1639 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -31,6 +31,7 @@
*/
/* Libav includes */
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/base64.h"
diff --git a/libavcodec/libvo-amrwbenc.c b/libavcodec/libvo-amrwbenc.c
index b1584dd1b8..9ea180c326 100644
--- a/libavcodec/libvo-amrwbenc.c
+++ b/libavcodec/libvo-amrwbenc.c
@@ -20,8 +20,12 @@
*/
#include <vo-amrwbenc/enc_if.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "libavutil/avstring.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index 402998d67b..648187c319 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -27,6 +27,7 @@
#include <vpx/vpx_decoder.h>
#include <vpx/vp8dx.h>
+#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 74e778068d..c5c522add2 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -31,6 +31,7 @@
#include "avcodec.h"
#include "internal.h"
#include "libavutil/base64.h"
+#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 16df833b63..862fe3506e 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -19,7 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/internal.h"
#include "libavutil/opt.h"
+#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 0d6910fd2d..6ce5dde266 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/lls.h"
#define LPC_USE_DOUBLE
diff --git a/libavcodec/lzw.c b/libavcodec/lzw.c
index 8761510283..2c99014c2a 100644
--- a/libavcodec/lzw.c
+++ b/libavcodec/lzw.c
@@ -29,6 +29,7 @@
#include "avcodec.h"
#include "lzw.h"
+#include "libavutil/mem.h"
#define LZW_MAXBITS 12
#define LZW_SIZTABLE (1<<LZW_MAXBITS)
diff --git a/libavcodec/mace.c b/libavcodec/mace.c
index 00f6f894fe..9d07180c52 100644
--- a/libavcodec/mace.c
+++ b/libavcodec/mace.c
@@ -25,6 +25,7 @@
*/
#include "avcodec.h"
+#include "libavutil/common.h"
/*
* Adapted to libavcodec by Francois Revol <revol@free.fr>
diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index ccf14f4761..4c8036815c 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -31,7 +31,9 @@
#include "config.h"
#include "dsputil.h"
+#include "libavutil/internal.h"
#include "libavutil/lfg.h"
+#include "libavutil/mem.h"
#include "libavutil/time.h"
#undef printf
diff --git a/libavcodec/movsub_bsf.c b/libavcodec/movsub_bsf.c
index 423ebebcc6..506750f12d 100644
--- a/libavcodec/movsub_bsf.c
+++ b/libavcodec/movsub_bsf.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/mp3_header_compress_bsf.c b/libavcodec/mp3_header_compress_bsf.c
index bc3659ef3e..06a7ebeb9a 100644
--- a/libavcodec/mp3_header_compress_bsf.c
+++ b/libavcodec/mp3_header_compress_bsf.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "mpegaudiodecheader.h"
diff --git a/libavcodec/mp3_header_decompress_bsf.c b/libavcodec/mp3_header_decompress_bsf.c
index 78025ccc41..8e086a1192 100644
--- a/libavcodec/mp3_header_decompress_bsf.c
+++ b/libavcodec/mp3_header_decompress_bsf.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "mpegaudiodecheader.h"
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index 2a01e1af18..c904873a18 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -22,6 +22,7 @@
#include "parser.h"
#include "mpegaudiodecheader.h"
+#include "libavutil/common.h"
typedef struct MpegAudioParseContext {
diff --git a/libavcodec/msvideo1.c b/libavcodec/msvideo1.c
index ea2cf1450f..0d772b9f44 100644
--- a/libavcodec/msvideo1.c
+++ b/libavcodec/msvideo1.c
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <string.h>
+#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/noise_bsf.c b/libavcodec/noise_bsf.c
index 489e3c7c7c..3e552e29f8 100644
--- a/libavcodec/noise_bsf.c
+++ b/libavcodec/noise_bsf.c
@@ -18,7 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
+#include <string.h>
+
#include "avcodec.h"
+#include "libavutil/mem.h"
static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index d62bb1831b..b74ee31ca1 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include "libavutil/bswap.h"
+#include "libavutil/common.h"
#include "libavutil/lzo.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/options.c b/libavcodec/options.c
index abbca0bf24..8b1f6a3bc8 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -27,8 +27,10 @@
#include "avcodec.h"
#include "internal.h"
#include "libavutil/avassert.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include <float.h> /* FLT_MIN, FLT_MAX */
+#include <string.h>
#include "options_table.h"
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 45acd4c320..afd6f37450 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -25,6 +25,7 @@
#include "libavutil/opt.h"
#include "avcodec.h"
+#include "config.h"
#define OFFSET(x) offsetof(AVCodecContext,x)
#define DEFAULT 0 //should be NAN but it does not work as it is not a constant in glibc as required by ANSI/ISO C
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index bd997ab8fd..29904f9a33 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -20,7 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "parser.h"
+#include "libavutil/mem.h"
static AVCodecParser *av_first_parser = NULL;
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index 13572dd8bb..f60d0e03d3 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
+#include <string.h>
+
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "pnm.h"
diff --git a/libavcodec/ppc/fmtconvert_altivec.c b/libavcodec/ppc/fmtconvert_altivec.c
index 9759a2bf87..db2c25800b 100644
--- a/libavcodec/ppc/fmtconvert_altivec.c
+++ b/libavcodec/ppc/fmtconvert_altivec.c
@@ -21,6 +21,7 @@
#include "libavcodec/fmtconvert.h"
#include "libavutil/ppc/util_altivec.h"
+#include "libavutil/mem.h"
#include "dsputil_altivec.h"
static void int32_to_float_fmul_scalar_altivec(float *dst, const int *src,
diff --git a/libavcodec/ppc/gmc_altivec.c b/libavcodec/ppc/gmc_altivec.c
index 45243c26f5..f86964bc58 100644
--- a/libavcodec/ppc/gmc_altivec.c
+++ b/libavcodec/ppc/gmc_altivec.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/mem.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/dsputil.h"
diff --git a/libavcodec/ppc/h264_altivec_template.c b/libavcodec/ppc/h264_altivec_template.c
index 2a8f4bf672..0964bbebf8 100644
--- a/libavcodec/ppc/h264_altivec_template.c
+++ b/libavcodec/ppc/h264_altivec_template.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/mem.h"
+
#ifdef DEBUG
#define ASSERT_ALIGNED(ptr) assert(((unsigned long)ptr&0x0000000F));
#else
diff --git a/libavcodec/ppc/vp8dsp_altivec.c b/libavcodec/ppc/vp8dsp_altivec.c
index f5700007d9..4336453f50 100644
--- a/libavcodec/ppc/vp8dsp_altivec.c
+++ b/libavcodec/ppc/vp8dsp_altivec.c
@@ -21,6 +21,7 @@
*/
#include "libavutil/cpu.h"
+#include "libavutil/mem.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/vp8dsp.h"
diff --git a/libavcodec/proresdsp.c b/libavcodec/proresdsp.c
index 99adf64838..39d12066eb 100644
--- a/libavcodec/proresdsp.c
+++ b/libavcodec/proresdsp.c
@@ -22,6 +22,7 @@
#include "proresdsp.h"
#include "simple_idct.h"
+#include "libavutil/common.h"
#define BIAS (1 << (PRORES_BITS_PER_SAMPLE - 1)) ///< bias value for converting signed pixels into unsigned ones
#define CLIP_MIN (1 << (PRORES_BITS_PER_SAMPLE - 8)) ///< minimum value for clipping resulting pixels
diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c
index d145a53691..a2af61175e 100644
--- a/libavcodec/psymodel.c
+++ b/libavcodec/psymodel.c
@@ -19,9 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "avcodec.h"
#include "psymodel.h"
#include "iirfilter.h"
+#include "libavutil/mem.h"
extern const FFPsyModel ff_aac_psy_model;
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index c7edb9ec81..fd2dc1801e 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -52,6 +52,7 @@
#include "avcodec.h"
#include "internal.h"
#include "thread.h"
+#include "libavutil/common.h"
#if HAVE_PTHREADS
#include <pthread.h>
diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c
index 51a69f916d..e0f5a1b301 100644
--- a/libavcodec/ptx.c
+++ b/libavcodec/ptx.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 0228c52f8a..9e8c204f73 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -24,6 +24,7 @@
* Apple QuickDraw codec.
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c
index d85e970553..5b87ebdb2d 100644
--- a/libavcodec/r210dec.c
+++ b/libavcodec/r210dec.c
@@ -22,6 +22,7 @@
#include "avcodec.h"
#include "libavutil/bswap.h"
+#include "libavutil/common.h"
static av_cold int decode_init(AVCodecContext *avctx)
{
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index 8b5ea3aab2..3c76a0ab7c 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -23,6 +23,7 @@
#include "avcodec.h"
#include "celp_filters.h"
#include "ra144.h"
+#include "libavutil/common.h"
const int16_t ff_gain_val_tab[256][3] = {
{ 541, 956, 768}, { 877, 581, 568}, { 675,1574, 635}, {1248,1464, 668},
diff --git a/libavcodec/ra288.h b/libavcodec/ra288.h
index 5e44c823ea..80835800b9 100644
--- a/libavcodec/ra288.h
+++ b/libavcodec/ra288.h
@@ -24,6 +24,7 @@
#include <stdint.h>
#include "dsputil.h"
+#include "libavutil/common.h"
static const float amptable[8]={
0.515625, 0.90234375, 1.57910156, 2.76342773,
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index c41f756572..ecf5365210 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "raw.h"
+#include "libavutil/common.h"
const PixelFormatTag ff_raw_pix_fmt_tags[] = {
{ PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index e8a6a3bcb4..6f4c0ced3b 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "imgconvert.h"
#include "raw.h"
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index 56edf50649..927d6f6633 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -29,6 +29,7 @@
#include "internal.h"
#include "libavutil/pixdesc.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/internal.h"
static av_cold int raw_init_encoder(AVCodecContext *avctx)
{
diff --git a/libavcodec/resample.c b/libavcodec/resample.c
index eacffede96..ca6a84da6e 100644
--- a/libavcodec/resample.c
+++ b/libavcodec/resample.c
@@ -24,9 +24,12 @@
* samplerate conversion for both audio and video
*/
+#include <string.h>
+
#include "avcodec.h"
#include "audioconvert.h"
#include "libavutil/opt.h"
+#include "libavutil/mem.h"
#include "libavutil/samplefmt.h"
#define MAX_CHANNELS 8
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c
index 48c20c2cbb..79e6279ff0 100644
--- a/libavcodec/resample2.c
+++ b/libavcodec/resample2.c
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "dsputil.h"
+#include "libavutil/common.h"
#ifndef CONFIG_RESAMPLE_HP
#define FILTER_SHIFT 15
diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c
index 9f9ecc225c..57015e7de8 100644
--- a/libavcodec/rl2.c
+++ b/libavcodec/rl2.c
@@ -30,7 +30,9 @@
#include <stdlib.h>
#include <string.h>
+#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
+#include "libavutil/mem.h"
#include "avcodec.h"
diff --git a/libavcodec/rle.c b/libavcodec/rle.c
index 8a009e72bc..cbbde93f56 100644
--- a/libavcodec/rle.c
+++ b/libavcodec/rle.c
@@ -20,6 +20,7 @@
*/
#include "avcodec.h"
#include "rle.h"
+#include "libavutil/common.h"
/**
* Count up to 127 consecutive pixels which are either all the same or
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c
index 79e993a38b..9337360d91 100644
--- a/libavcodec/rpza.c
+++ b/libavcodec/rpza.c
@@ -38,6 +38,7 @@
#include <stdlib.h>
#include <string.h>
+#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/rtjpeg.h b/libavcodec/rtjpeg.h
index d1598954df..18f843ba82 100644
--- a/libavcodec/rtjpeg.h
+++ b/libavcodec/rtjpeg.h
@@ -24,6 +24,7 @@
#include <stdint.h>
#include "dsputil.h"
+#include "libavutil/mem.h"
#define RTJPEG_FILE_VERSION 0
#define RTJPEG_HEADER_SIZE 12
diff --git a/libavcodec/rv34dsp.c b/libavcodec/rv34dsp.c
index 1ddcea4c0f..ac14ed9ab1 100644
--- a/libavcodec/rv34dsp.c
+++ b/libavcodec/rv34dsp.c
@@ -26,6 +26,7 @@
*/
#include "dsputil.h"
#include "rv34dsp.h"
+#include "libavutil/common.h"
/**
* @name RV30/40 inverse transform functions
diff --git a/libavcodec/rv40dsp.c b/libavcodec/rv40dsp.c
index 19a18d37a5..762f714788 100644
--- a/libavcodec/rv40dsp.c
+++ b/libavcodec/rv40dsp.c
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "dsputil.h"
#include "rv34dsp.h"
+#include "libavutil/common.h"
#define RV40_LOWPASS(OPNAME, OP) \
static av_unused void OPNAME ## rv40_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride,\
diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index bffd3c6916..087e948dd1 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/sinewin_tablegen.h b/libavcodec/sinewin_tablegen.h
index 7d920265d1..1ee225bf67 100644
--- a/libavcodec/sinewin_tablegen.h
+++ b/libavcodec/sinewin_tablegen.h
@@ -28,6 +28,7 @@
// for the host and the target and config.h is only valid for the target
#include <math.h>
#include "libavutil/attributes.h"
+#include "libavutil/common.h"
#if !CONFIG_HARDCODED_TABLES
SINETABLE( 32);
diff --git a/libavcodec/sipr.h b/libavcodec/sipr.h
index 951532167f..5007c75c8a 100644
--- a/libavcodec/sipr.h
+++ b/libavcodec/sipr.h
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "dsputil.h"
#include "acelp_pitch_delay.h"
+#include "libavutil/mem.h"
#define LP_FILTER_ORDER_16k 16
#define L_SUBFR_16k 80
diff --git a/libavcodec/sipr16k.c b/libavcodec/sipr16k.c
index ca10cd9c70..bd0600c7b3 100644
--- a/libavcodec/sipr16k.c
+++ b/libavcodec/sipr16k.c
@@ -24,6 +24,7 @@
#include <math.h>
#include "sipr.h"
+#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "lsp.h"
#include "celp_math.h"
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c
index a5c46af53b..bbc80617ac 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -20,6 +20,7 @@
*/
#include "libavutil/avstring.h"
+#include "libavutil/common.h"
#include "libavutil/parseutils.h"
#include "avcodec.h"
#include "ass.h"
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 441e6891a8..43c93afeed 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index c2045ef833..1d9b5bd595 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
+#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 8825c47e7f..f60c65ec7d 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -26,6 +26,7 @@
*/
#include "avcodec.h"
+#include "config.h"
#if CONFIG_ZLIB
#include <zlib.h>
#endif
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 2404f7f03e..693894412f 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -29,6 +29,7 @@
#include "libavutil/opt.h"
#include "avcodec.h"
+#include "config.h"
#if CONFIG_ZLIB
#include <zlib.h>
#endif
diff --git a/libavcodec/tmv.c b/libavcodec/tmv.c
index 908e5cffec..396dff0386 100644
--- a/libavcodec/tmv.c
+++ b/libavcodec/tmv.c
@@ -26,7 +26,10 @@
* @see http://www.oldskool.org/pc/8088_Corruption
*/
+#include <string.h>
+
#include "avcodec.h"
+#include "libavutil/internal.h"
#include "cga_data.h"
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index 8738736c90..6525ddca24 100644
--- a/libavcodec/truemotion1.c
+++ b/libavcodec/truemotion1.c
@@ -36,6 +36,8 @@
#include "avcodec.h"
#include "dsputil.h"
#include "libavutil/imgutils.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "truemotion1data.h"
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index 8d70823673..dad861878a 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -23,6 +23,8 @@
#include "avcodec.h"
#include "libavutil/bswap.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
static av_cold int decode_init(AVCodecContext *avctx)
{
diff --git a/libavcodec/v210x.c b/libavcodec/v210x.c
index 75449cd5f5..9fd4f7aed8 100644
--- a/libavcodec/v210x.c
+++ b/libavcodec/v210x.c
@@ -20,6 +20,8 @@
#include "avcodec.h"
#include "libavutil/bswap.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
static av_cold int decode_init(AVCodecContext *avctx)
{
diff --git a/libavcodec/v410dec.c b/libavcodec/v410dec.c
index d23c590462..09d09d04ea 100644
--- a/libavcodec/v410dec.c
+++ b/libavcodec/v410dec.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c
index 76aedcbc51..fce1f8bbc1 100644
--- a/libavcodec/v410enc.c
+++ b/libavcodec/v410enc.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
diff --git a/libavcodec/vc1dsp.c b/libavcodec/vc1dsp.c
index 7b50af6a21..ffbf62f968 100644
--- a/libavcodec/vc1dsp.c
+++ b/libavcodec/vc1dsp.c
@@ -26,6 +26,7 @@
*/
#include "vc1dsp.h"
+#include "libavutil/common.h"
/** Apply overlap transform to horizontal edge
diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c
index d1d63b566a..cc742f0007 100644
--- a/libavcodec/vcr1.c
+++ b/libavcodec/vcr1.c
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "dsputil.h"
+#include "libavutil/internal.h"
typedef struct VCR1Context {
AVFrame picture;
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index d744cc3b0d..fce7aec9f7 100644
--- a/libavcodec/vmdav.c
+++ b/libavcodec/vmdav.c
@@ -43,6 +43,7 @@
#include <stdlib.h>
#include <string.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c
index bf12739bae..be6c66c0bc 100644
--- a/libavcodec/vmnc.c
+++ b/libavcodec/vmnc.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/vorbis_data.c b/libavcodec/vorbis_data.c
index bd27b82d4a..98c7a599c9 100644
--- a/libavcodec/vorbis_data.c
+++ b/libavcodec/vorbis_data.c
@@ -21,6 +21,7 @@
#include "dsputil.h"
#include "vorbis.h"
#include "libavutil/audioconvert.h"
+#include "libavutil/mem.h"
const uint8_t ff_vorbis_channel_layout_offsets[8][8] = {
{ 0 },
diff --git a/libavcodec/vp3dsp.c b/libavcodec/vp3dsp.c
index 395526e040..9b0b5d0a9c 100644
--- a/libavcodec/vp3dsp.c
+++ b/libavcodec/vp3dsp.c
@@ -25,6 +25,7 @@
*/
#include "libavutil/attributes.h"
+#include "libavutil/common.h"
#include "avcodec.h"
#include "dsputil.h"
#include "vp3dsp.h"
diff --git a/libavcodec/vp56dsp.c b/libavcodec/vp56dsp.c
index 7f13605ad5..e208a039b0 100644
--- a/libavcodec/vp56dsp.c
+++ b/libavcodec/vp56dsp.c
@@ -22,6 +22,7 @@
#include <stdint.h>
#include "avcodec.h"
#include "vp56dsp.h"
+#include "libavutil/common.h"
/* Gives very similar result than the vp6 version except in a few cases */
static int vp5_adjust(int v, int t)
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c
index f6c944328a..3700cc34bc 100644
--- a/libavcodec/vp8dsp.c
+++ b/libavcodec/vp8dsp.c
@@ -26,6 +26,7 @@
#include "dsputil.h"
#include "vp8dsp.h"
+#include "libavutil/common.h"
// TODO: Maybe add dequant
static void vp8_luma_dc_wht_c(DCTELEM block[4][4][16], DCTELEM dc[16])
diff --git a/libavcodec/ws-snd1.c b/libavcodec/ws-snd1.c
index d9ca77d965..880ae85423 100644
--- a/libavcodec/ws-snd1.c
+++ b/libavcodec/ws-snd1.c
@@ -20,6 +20,7 @@
*/
#include <stdint.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/x86/idct_mmx_xvid.c b/libavcodec/x86/idct_mmx_xvid.c
index e4c778c398..23180b2c5a 100644
--- a/libavcodec/x86/idct_mmx_xvid.c
+++ b/libavcodec/x86/idct_mmx_xvid.c
@@ -40,7 +40,10 @@
*/
#include <inttypes.h>
+
+#include "config.h"
#include "libavcodec/avcodec.h"
+#include "libavutil/mem.h"
#include "idct_xvid.h"
#if HAVE_INLINE_ASM
diff --git a/libavcodec/x86/idct_sse2_xvid.c b/libavcodec/x86/idct_sse2_xvid.c
index b58db79a5a..fe2478e55e 100644
--- a/libavcodec/x86/idct_sse2_xvid.c
+++ b/libavcodec/x86/idct_sse2_xvid.c
@@ -39,6 +39,8 @@
*/
#include "libavcodec/dsputil.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "libavutil/x86/asm.h"
#include "idct_xvid.h"
#include "dsputil_mmx.h"
diff --git a/libavcodec/x86/lpc_mmx.c b/libavcodec/x86/lpc_mmx.c
index 609f4e5cd2..82f77612f2 100644
--- a/libavcodec/x86/lpc_mmx.c
+++ b/libavcodec/x86/lpc_mmx.c
@@ -21,6 +21,7 @@
#include "libavutil/x86/asm.h"
#include "libavutil/cpu.h"
+#include "libavutil/internal.h"
#include "libavcodec/lpc.h"
#if HAVE_INLINE_ASM
diff --git a/libavcodec/x86/mlpdsp.c b/libavcodec/x86/mlpdsp.c
index d793c7d3e0..f81c329a38 100644
--- a/libavcodec/x86/mlpdsp.c
+++ b/libavcodec/x86/mlpdsp.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/internal.h"
#include "libavutil/x86/asm.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/mlp.h"
diff --git a/libavcodec/x86/motion_est_mmx.c b/libavcodec/x86/motion_est_mmx.c
index c3136eb1fe..6eb44d4b2d 100644
--- a/libavcodec/x86/motion_est_mmx.c
+++ b/libavcodec/x86/motion_est_mmx.c
@@ -22,6 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "libavutil/x86/asm.h"
#include "libavcodec/dsputil.h"
#include "dsputil_mmx.h"
diff --git a/libavcodec/x86/rv40dsp_init.c b/libavcodec/x86/rv40dsp_init.c
index bee33657b5..cf52b41416 100644
--- a/libavcodec/x86/rv40dsp_init.c
+++ b/libavcodec/x86/rv40dsp_init.c
@@ -27,6 +27,7 @@
*/
#include "libavcodec/rv34dsp.h"
+#include "libavutil/mem.h"
#include "dsputil_mmx.h"
void ff_put_rv40_chroma_mc8_mmx (uint8_t *dst, uint8_t *src,
diff --git a/libavcodec/x86/simple_idct_mmx.c b/libavcodec/x86/simple_idct_mmx.c
index f455eb8974..0e809337d3 100644
--- a/libavcodec/x86/simple_idct_mmx.c
+++ b/libavcodec/x86/simple_idct_mmx.c
@@ -21,6 +21,8 @@
*/
#include "libavcodec/dsputil.h"
#include "libavcodec/simple_idct.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "dsputil_mmx.h"
#if HAVE_INLINE_ASM
diff --git a/libavcodec/x86/vc1dsp_mmx.c b/libavcodec/x86/vc1dsp_mmx.c
index 9200798310..f7ca714481 100644
--- a/libavcodec/x86/vc1dsp_mmx.c
+++ b/libavcodec/x86/vc1dsp_mmx.c
@@ -25,6 +25,8 @@
*/
#include "libavutil/cpu.h"
+#include "libavutil/internal.h"
+#include "libavutil/mem.h"
#include "libavutil/x86/asm.h"
#include "libavcodec/dsputil.h"
#include "dsputil_mmx.h"
diff --git a/libavcodec/x86/vp8dsp-init.c b/libavcodec/x86/vp8dsp-init.c
index 4568a3864c..04cfecca86 100644
--- a/libavcodec/x86/vp8dsp-init.c
+++ b/libavcodec/x86/vp8dsp-init.c
@@ -21,6 +21,7 @@
*/
#include "libavutil/cpu.h"
+#include "libavutil/mem.h"
#include "libavutil/x86/asm.h"
#include "libavcodec/vp8dsp.h"
diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c
index 358a25ab67..98afdcde13 100644
--- a/libavcodec/xbmenc.c
+++ b/libavcodec/xbmenc.c
@@ -22,6 +22,7 @@
#include "avcodec.h"
#include "internal.h"
+#include "libavutil/common.h"
static av_cold int xbm_encode_init(AVCodecContext *avctx)
{
diff --git a/libavcodec/xl.c b/libavcodec/xl.c
index 6f6729b9a7..7ba2413221 100644
--- a/libavcodec/xl.c
+++ b/libavcodec/xl.c
@@ -24,6 +24,7 @@
* Miro VideoXL codec.
*/
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/zerocodec.c b/libavcodec/zerocodec.c
index c8c2453a56..789181cb1c 100644
--- a/libavcodec/zerocodec.c
+++ b/libavcodec/zerocodec.c
@@ -19,6 +19,7 @@
#include <zlib.h>
#include "avcodec.h"
+#include "libavutil/common.h"
typedef struct {
AVFrame previous_frame;
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index 4557cb16f9..b95a518cff 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index 85651bebbd..ae91c19bd8 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"