diff --git a/doc/APIchanges b/doc/APIchanges index f94670cf16..5e67e0d969 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,9 @@ libavutil: 2011-04-18 API changes, most recent first: +2012-08-08 - xxxxxxx - lavu 51.39 - avutil.h + Don't implicitly include libavutil/common.h in avutil.h + 2012-08-08 - xxxxxxx - lavu 51.38 - dict.h Add av_dict_count(). 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 #include +#include +#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 +#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 + +#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 + #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 + #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 + #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 #include #include +#include #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 + #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 + #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 #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 #include +#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 #include "avcodec.h" +#include "libavutil/common.h" #if CONFIG_ZLIB #include 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 +#include #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 */ +#include + #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 + #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 +#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 + #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 #include +#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 +#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 + #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 #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 #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 +#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 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 #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 #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 #include #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 #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 +#include +#include #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 #include +#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< 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 #include +#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 +#include + #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 #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 /* FLT_MIN, FLT_MAX */ +#include #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 + #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 +#include + #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 + #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 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 #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 + #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 #include +#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 #include +#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 #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 #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 #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 + +#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 #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 #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 + #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 #include +#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 #include +#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 #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 +#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 + +#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 #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 #include +#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 #include +#include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "avcodec.h" #include "internal.h" diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c index 4813a3dd18..5a5c762c8b 100644 --- a/libavdevice/avdevice.c +++ b/libavdevice/avdevice.c @@ -17,6 +17,7 @@ */ #include "avdevice.h" +#include "config.h" unsigned avdevice_version(void) { diff --git a/libavdevice/timefilter.c b/libavdevice/timefilter.c index cf9d2c623b..649d3c21cc 100644 --- a/libavdevice/timefilter.c +++ b/libavdevice/timefilter.c @@ -22,6 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/common.h" #include "libavutil/mem.h" #include "config.h" #include "timefilter.h" diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c index 6c46f4b1be..9e69fd0ad8 100644 --- a/libavfilter/af_aformat.c +++ b/libavfilter/af_aformat.c @@ -25,6 +25,7 @@ #include "libavutil/audioconvert.h" #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index d79a626d0a..7bb43ea53e 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -32,6 +32,7 @@ #include "libavutil/audio_fifo.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/float_dsp.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" diff --git a/libavfilter/af_anull.c b/libavfilter/af_anull.c index 462ad68269..7082adb7d9 100644 --- a/libavfilter/af_anull.c +++ b/libavfilter/af_anull.c @@ -24,6 +24,7 @@ #include "audio.h" #include "avfilter.h" #include "internal.h" +#include "libavutil/internal.h" AVFilter avfilter_af_anull = { .name = "anull", diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index 21850dd1d2..b58e2499d8 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -18,6 +18,7 @@ #include "libavresample/avresample.h" #include "libavutil/audio_fifo.h" +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index b5cd96a8d3..3e945d6e91 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -27,6 +27,7 @@ #include "libavutil/audioconvert.h" #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index 32b85d82f8..68615aa609 100644 --- a/libavfilter/af_channelsplit.c +++ b/libavfilter/af_channelsplit.c @@ -24,6 +24,7 @@ */ #include "libavutil/audioconvert.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index f25ec921dc..c44788bd80 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -27,6 +27,7 @@ #include "libavutil/audioconvert.h" #include "libavutil/avassert.h" +#include "libavutil/common.h" #include "libavutil/opt.h" #include "audio.h" diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c index 1360c1ca49..eb2d2f9e21 100644 --- a/libavfilter/af_resample.c +++ b/libavfilter/af_resample.c @@ -24,6 +24,7 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c index 9c22b4fe9e..94b31154df 100644 --- a/libavfilter/allfilters.c +++ b/libavfilter/allfilters.c @@ -20,6 +20,7 @@ */ #include "avfilter.h" +#include "config.h" #define REGISTER_FILTER(X,x,y) { \ diff --git a/libavfilter/asink_anullsink.c b/libavfilter/asink_anullsink.c index 557655f182..cada5c548d 100644 --- a/libavfilter/asink_anullsink.c +++ b/libavfilter/asink_anullsink.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/internal.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c index 20489e7121..6627c33b3f 100644 --- a/libavfilter/asrc_anullsrc.c +++ b/libavfilter/asrc_anullsrc.c @@ -21,9 +21,13 @@ * null audio source */ +#include +#include + #include "avfilter.h" #include "internal.h" #include "libavutil/audioconvert.h" +#include "libavutil/internal.h" typedef struct { uint64_t channel_layout; diff --git a/libavfilter/audio.c b/libavfilter/audio.c index bd718c611d..66010c18c5 100644 --- a/libavfilter/audio.c +++ b/libavfilter/audio.c @@ -17,6 +17,7 @@ */ #include "libavutil/audioconvert.h" +#include "libavutil/common.h" #include "audio.h" #include "avfilter.h" diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index d302264137..77b36339a1 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -21,6 +21,7 @@ /* #define DEBUG */ +#include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "libavutil/rational.h" #include "libavutil/audioconvert.h" diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index a0aa807b9c..525a1dc6c7 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -30,6 +30,7 @@ #include "libavutil/audioconvert.h" #include "libavutil/avassert.h" +#include "libavutil/common.h" #include "libavutil/log.h" static const AVClass filtergraph_class = { diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c index e3ebc9b8c7..c939388656 100644 --- a/libavfilter/buffer.c +++ b/libavfilter/buffer.c @@ -17,6 +17,7 @@ */ #include "libavutil/audioconvert.h" +#include "libavutil/common.h" #include "libavcodec/avcodec.h" #include "avfilter.h" diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 04320b5654..d62b08128a 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -26,6 +26,7 @@ #include "libavutil/audio_fifo.h" #include "libavutil/audioconvert.h" #include "libavutil/avassert.h" +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "audio.h" diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 33cb63b46b..5f4e9b7496 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -31,6 +31,7 @@ #include "video.h" #include "libavutil/audioconvert.h" +#include "libavutil/common.h" #include "libavutil/fifo.h" #include "libavutil/imgutils.h" #include "libavutil/opt.h" diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index 6aaf5c5866..60710243c1 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -16,8 +16,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/avutil.h" #include "libavutil/colorspace.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "drawutils.h" diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c index 3226a0ddbe..bf78bb6aef 100644 --- a/libavfilter/fifo.c +++ b/libavfilter/fifo.c @@ -25,6 +25,7 @@ #include "libavutil/avassert.h" #include "libavutil/audioconvert.h" +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "libavutil/samplefmt.h" diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 3ec68397c9..98cda8b8e5 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 49155293d8..3921189aa9 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -22,8 +22,10 @@ #include #include +#include #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "avfilter.h" #include "avfiltergraph.h" diff --git a/libavfilter/split.c b/libavfilter/split.c index 084d555f1a..88224092d6 100644 --- a/libavfilter/split.c +++ b/libavfilter/split.c @@ -23,6 +23,10 @@ * audio and video splitter */ +#include + +#include "libavutil/internal.h" +#include "libavutil/mem.h" #include "avfilter.h" #include "audio.h" #include "internal.h" diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c index 8738b0a764..04c854d1bd 100644 --- a/libavfilter/vf_aspect.c +++ b/libavfilter/vf_aspect.c @@ -23,6 +23,7 @@ * aspect ratio modification video filters */ +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_blackframe.c b/libavfilter/vf_blackframe.c index bf0b18bea3..65443fc24c 100644 --- a/libavfilter/vf_blackframe.c +++ b/libavfilter/vf_blackframe.c @@ -27,6 +27,10 @@ * Ported from MPlayer libmpcodecs/vf_blackframe.c. */ +#include +#include + +#include "libavutil/internal.h" #include "avfilter.h" #include "formats.h" #include "internal.h" diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c index 0247e93e6b..cfe33da9be 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -26,6 +26,7 @@ */ #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/eval.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c index 425b0eb8b5..243702b6e5 100644 --- a/libavfilter/vf_copy.c +++ b/libavfilter/vf_copy.c @@ -21,6 +21,7 @@ * copy video filter */ +#include "libavutil/internal.h" #include "avfilter.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 4361ba5a8c..1c8e87799a 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -25,12 +25,15 @@ /* #define DEBUG */ +#include + #include "avfilter.h" #include "formats.h" #include "internal.h" #include "video.h" #include "libavutil/eval.h" #include "libavutil/avstring.h" +#include "libavutil/internal.h" #include "libavutil/libm.h" #include "libavutil/imgutils.h" #include "libavutil/mathematics.h" diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 8b6063c996..e107f471c3 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -23,7 +23,10 @@ * Ported from MPlayer libmpcodecs/vf_cropdetect.c. */ +#include + #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "avfilter.h" #include "formats.h" #include "internal.h" diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c index e8b5431caf..5e2cf48e3b 100644 --- a/libavfilter/vf_delogo.c +++ b/libavfilter/vf_delogo.c @@ -25,6 +25,7 @@ * Ported from MPlayer libmpcodecs/vf_delogo.c. */ +#include "libavutil/common.h" #include "libavutil/imgutils.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index 96b1c00911..69fdd790d7 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -25,6 +25,7 @@ */ #include "libavutil/colorspace.h" +#include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "libavutil/parseutils.h" #include "avfilter.h" diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c index c30a862ad6..ca847929ae 100644 --- a/libavfilter/vf_fade.c +++ b/libavfilter/vf_fade.c @@ -25,6 +25,7 @@ * based heavily on vf_negate.c by Bobby Bingham */ +#include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index 4ea7fe1127..5a8e6f94a1 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -25,7 +25,11 @@ /* #define DEBUG */ +#include +#include + #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 8528b0b3ff..0437bfaa07 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -23,6 +23,10 @@ * format and noformat video filters */ +#include + +#include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "formats.h" diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index d95fef5993..73058009a5 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -21,6 +21,7 @@ * a filter enforcing given constant framerate */ +#include "libavutil/common.h" #include "libavutil/fifo.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index f8896b5e57..2953256521 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -33,6 +33,7 @@ */ #include "libavutil/imgutils.h" +#include "libavutil/common.h" #include "libavutil/cpu.h" #include "libavutil/pixdesc.h" #include "avfilter.h" diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c index 06c42483d1..87bfe11191 100644 --- a/libavfilter/vf_hflip.c +++ b/libavfilter/vf_hflip.c @@ -24,11 +24,14 @@ * horizontal flip filter */ +#include + #include "avfilter.h" #include "formats.h" #include "internal.h" #include "video.h" #include "libavutil/pixdesc.h" +#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c index 138b527a70..3a81f37ae1 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -26,6 +26,7 @@ * libmpcodecs/vf_hqdn3d.c. */ +#include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "libavutil/intreadwrite.h" #include "avfilter.h" diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index c56c55b88c..adbc0f04c2 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -24,6 +24,7 @@ * value, and apply it to input video. */ +#include "libavutil/common.h" #include "libavutil/eval.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" diff --git a/libavfilter/vf_null.c b/libavfilter/vf_null.c index 8a2a8cb11a..9f2e15addb 100644 --- a/libavfilter/vf_null.c +++ b/libavfilter/vf_null.c @@ -21,6 +21,7 @@ * null video filter */ +#include "libavutil/internal.h" #include "avfilter.h" #include "internal.h" #include "video.h" diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 5a8da27a16..6dd9be4975 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -27,6 +27,7 @@ #include "avfilter.h" #include "formats.h" +#include "libavutil/common.h" #include "libavutil/eval.h" #include "libavutil/avstring.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index ed2e2e0891..2291b138fb 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -29,6 +29,7 @@ #include "internal.h" #include "video.h" #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/eval.h" #include "libavutil/pixdesc.h" #include "libavutil/colorspace.h" diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c index 11905e625c..cf08977b1f 100644 --- a/libavfilter/vf_pixdesctest.c +++ b/libavfilter/vf_pixdesctest.c @@ -23,6 +23,7 @@ * pixdesc test filter */ +#include "libavutil/common.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 66005303f5..949691f797 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -23,12 +23,16 @@ * scale video filter */ +#include +#include + #include "avfilter.h" #include "formats.h" #include "internal.h" #include "video.h" #include "libavutil/avstring.h" #include "libavutil/eval.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c index 59030ebced..dabd3d173d 100644 --- a/libavfilter/vf_select.c +++ b/libavfilter/vf_select.c @@ -25,6 +25,7 @@ #include "libavutil/eval.h" #include "libavutil/fifo.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_setpts.c b/libavfilter/vf_setpts.c index c4339b202a..e347716dff 100644 --- a/libavfilter/vf_setpts.c +++ b/libavfilter/vf_setpts.c @@ -27,6 +27,7 @@ /* #define DEBUG */ #include "libavutil/eval.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_settb.c b/libavfilter/vf_settb.c index 0a5ce4d173..24c2a637ab 100644 --- a/libavfilter/vf_settb.c +++ b/libavfilter/vf_settb.c @@ -23,8 +23,12 @@ * Set timebase for the output link. */ +#include +#include + #include "libavutil/avstring.h" #include "libavutil/eval.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "libavutil/rational.h" #include "avfilter.h" diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 254141d677..b53ccd10db 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -24,6 +24,7 @@ #include "libavutil/adler32.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c index 3c69cfd350..e0e2718ebd 100644 --- a/libavfilter/vf_slicify.c +++ b/libavfilter/vf_slicify.c @@ -26,6 +26,7 @@ #include "avfilter.h" #include "internal.h" #include "video.h" +#include "libavutil/common.h" #include "libavutil/pixdesc.h" typedef struct { diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c index 90f08e42cd..8135f5b74f 100644 --- a/libavfilter/vf_transpose.c +++ b/libavfilter/vf_transpose.c @@ -25,9 +25,12 @@ * Based on MPlayer libmpcodecs/vf_rotate.c. */ +#include + #include "libavutil/intreadwrite.h" #include "libavutil/pixdesc.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "avfilter.h" #include "formats.h" #include "internal.h" diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c index f0fb32aadc..742fe6a38c 100644 --- a/libavfilter/vf_vflip.c +++ b/libavfilter/vf_vflip.c @@ -23,6 +23,7 @@ * video vertical flip filter */ +#include "libavutil/internal.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/video.c b/libavfilter/video.c index ebbbc346bc..31a093e155 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -16,7 +16,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "avfilter.h" #include "internal.h" diff --git a/libavfilter/vsink_nullsink.c b/libavfilter/vsink_nullsink.c index e03dcf0085..27d85a07ec 100644 --- a/libavfilter/vsink_nullsink.c +++ b/libavfilter/vsink_nullsink.c @@ -18,6 +18,7 @@ #include "avfilter.h" #include "internal.h" +#include "libavutil/internal.h" static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref) { diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index ec83f03c5c..d7a26a7f9d 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -23,6 +23,9 @@ * color source */ +#include +#include + #include "avfilter.h" #include "formats.h" #include "internal.h" @@ -30,7 +33,9 @@ #include "libavutil/pixdesc.h" #include "libavutil/colorspace.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/parseutils.h" #include "drawutils.h" diff --git a/libavfilter/vsrc_nullsrc.c b/libavfilter/vsrc_nullsrc.c index 84a2ff86f5..888dbcc71a 100644 --- a/libavfilter/vsrc_nullsrc.c +++ b/libavfilter/vsrc_nullsrc.c @@ -21,8 +21,11 @@ * null video source */ +#include + #include "libavutil/avstring.h" #include "libavutil/eval.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "libavutil/parseutils.h" #include "avfilter.h" diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 42cd58ed89..56404fe21a 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -32,6 +32,7 @@ #include +#include "libavutil/common.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" #include "libavutil/intreadwrite.h" diff --git a/libavfilter/x86/gradfun.c b/libavfilter/x86/gradfun.c index 4cd481c05f..140f5e87cc 100644 --- a/libavfilter/x86/gradfun.c +++ b/libavfilter/x86/gradfun.c @@ -20,6 +20,7 @@ #include "libavutil/attributes.h" #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavutil/x86/asm.h" #include "libavfilter/gradfun.h" diff --git a/libavfilter/x86/yadif.c b/libavfilter/x86/yadif.c index ee3a016bd0..750db4261e 100644 --- a/libavfilter/x86/yadif.c +++ b/libavfilter/x86/yadif.c @@ -20,6 +20,8 @@ #include "libavutil/attributes.h" #include "libavutil/cpu.h" +#include "libavutil/internal.h" +#include "libavutil/mem.h" #include "libavutil/x86/asm.h" #include "libavcodec/x86/dsputil_mmx.h" #include "libavfilter/yadif.h" diff --git a/libavresample/audio_convert.c b/libavresample/audio_convert.c index 200eb100cc..1138ef8877 100644 --- a/libavresample/audio_convert.c +++ b/libavresample/audio_convert.c @@ -22,6 +22,7 @@ #include #include "config.h" +#include "libavutil/common.h" #include "libavutil/libm.h" #include "libavutil/log.h" #include "libavutil/mem.h" diff --git a/libavresample/audio_data.c b/libavresample/audio_data.c index 3f82c50ef0..d624ad3796 100644 --- a/libavresample/audio_data.c +++ b/libavresample/audio_data.c @@ -19,6 +19,7 @@ */ #include +#include #include "libavutil/mem.h" #include "audio_data.h" diff --git a/libavresample/audio_mix.c b/libavresample/audio_mix.c index f948c82788..dd2f33d27f 100644 --- a/libavresample/audio_mix.c +++ b/libavresample/audio_mix.c @@ -20,6 +20,7 @@ #include +#include "libavutil/common.h" #include "libavutil/libm.h" #include "libavutil/samplefmt.h" #include "avresample.h" diff --git a/libavresample/audio_mix_matrix.c b/libavresample/audio_mix_matrix.c index 522a177f20..3fbc4a4264 100644 --- a/libavresample/audio_mix_matrix.c +++ b/libavresample/audio_mix_matrix.c @@ -21,6 +21,7 @@ #include +#include "libavutil/common.h" #include "libavutil/libm.h" #include "libavutil/samplefmt.h" #include "avresample.h" diff --git a/libavresample/avresample-test.c b/libavresample/avresample-test.c index ad2f16d6f6..0d4f2df37c 100644 --- a/libavresample/avresample-test.c +++ b/libavresample/avresample-test.c @@ -23,6 +23,7 @@ #include #include "libavutil/avstring.h" +#include "libavutil/common.h" #include "libavutil/lfg.h" #include "libavutil/libm.h" #include "libavutil/log.h" diff --git a/libavresample/options.c b/libavresample/options.c index e7e0c27c4d..53076f4b3a 100644 --- a/libavresample/options.c +++ b/libavresample/options.c @@ -19,6 +19,7 @@ */ #include "libavutil/mathematics.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "avresample.h" #include "internal.h" diff --git a/libavresample/resample.c b/libavresample/resample.c index e6e0892c10..f0af1ffd58 100644 --- a/libavresample/resample.c +++ b/libavresample/resample.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/common.h" #include "libavutil/libm.h" #include "libavutil/log.h" #include "internal.h" diff --git a/libavresample/utils.c b/libavresample/utils.c index 2d83372bb8..4819b57977 100644 --- a/libavresample/utils.c +++ b/libavresample/utils.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/common.h" #include "libavutil/dict.h" #include "libavutil/error.h" #include "libavutil/log.h" diff --git a/libavutil/audio_fifo.c b/libavutil/audio_fifo.c index 97c51a72c1..b562537cf6 100644 --- a/libavutil/audio_fifo.c +++ b/libavutil/audio_fifo.c @@ -26,6 +26,7 @@ #include "avutil.h" #include "audio_fifo.h" +#include "common.h" #include "fifo.h" #include "mem.h" #include "samplefmt.h" diff --git a/libavutil/audioconvert.c b/libavutil/audioconvert.c index 1ac63a37a6..09750ff435 100644 --- a/libavutil/audioconvert.c +++ b/libavutil/audioconvert.c @@ -26,6 +26,7 @@ #include "avstring.h" #include "avutil.h" #include "audioconvert.h" +#include "common.h" static const char * const channel_names[] = { [0] = "FL", /* front left */ diff --git a/libavutil/avstring.c b/libavutil/avstring.c index 11f3a7c321..9b88c0b3dd 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -20,6 +20,7 @@ */ #include +#include #include #include #include @@ -157,6 +158,7 @@ int av_strncasecmp(const char *a, const char *b, size_t n) #ifdef TEST +#include "common.h" #undef printf int main(void) diff --git a/libavutil/avutil.h b/libavutil/avutil.h index 6811ad59bf..a1433b4e65 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -263,7 +263,6 @@ char av_get_picture_type_char(enum AVPictureType pict_type); * @} */ -#include "common.h" #include "error.h" #include "version.h" diff --git a/libavutil/dict.c b/libavutil/dict.c index bbee732db9..3c3194c1bc 100644 --- a/libavutil/dict.c +++ b/libavutil/dict.c @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include +#include + #include "avstring.h" #include "dict.h" #include "internal.h" diff --git a/libavutil/error.c b/libavutil/error.c index 21b68762d2..c335cde13d 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -18,6 +18,7 @@ #include "avutil.h" #include "avstring.h" +#include "common.h" int av_strerror(int errnum, char *errbuf, size_t errbuf_size) { diff --git a/libavutil/error.h b/libavutil/error.h index 11bcc5c4c4..8ac355cc41 100644 --- a/libavutil/error.h +++ b/libavutil/error.h @@ -25,6 +25,7 @@ #define AVUTIL_ERROR_H #include +#include #include "avutil.h" /** diff --git a/libavutil/eval.c b/libavutil/eval.c index d274272205..9d179309b7 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -27,6 +27,7 @@ */ #include "avutil.h" +#include "common.h" #include "eval.h" #include "log.h" #include "mathematics.h" diff --git a/libavutil/fifo.h b/libavutil/fifo.h index f106239304..e670175a76 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -26,6 +26,7 @@ #include #include "avutil.h" +#include "attributes.h" typedef struct AVFifoBuffer { uint8_t *buffer; diff --git a/libavutil/file.c b/libavutil/file.c index e1d0831994..0739641820 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include "file.h" #include "log.h" #include diff --git a/libavutil/file.h b/libavutil/file.h index c481c37f93..e3f02a8308 100644 --- a/libavutil/file.h +++ b/libavutil/file.h @@ -19,6 +19,8 @@ #ifndef AVUTIL_FILE_H #define AVUTIL_FILE_H +#include + #include "avutil.h" /** diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 3d28e5659b..4e394b6b50 100644 --- a/libavutil/imgutils.c +++ b/libavutil/imgutils.c @@ -21,6 +21,7 @@ * misc image utilities */ +#include "common.h" #include "imgutils.h" #include "internal.h" #include "log.h" diff --git a/libavutil/log.c b/libavutil/log.c index 9f1d59ab9c..d2cf88fd4b 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -32,6 +32,7 @@ #include #include "avstring.h" #include "avutil.h" +#include "common.h" #include "log.h" static int av_log_level = AV_LOG_INFO; diff --git a/libavutil/mem.h b/libavutil/mem.h index 211d33f64f..21fecc86dc 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -26,6 +26,8 @@ #ifndef AVUTIL_MEM_H #define AVUTIL_MEM_H +#include + #include "attributes.h" #include "avutil.h" diff --git a/libavutil/opt.c b/libavutil/opt.c index b1e50f7a59..607f7e6fd4 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -27,6 +27,7 @@ #include "avutil.h" #include "avstring.h" +#include "common.h" #include "opt.h" #include "eval.h" #include "dict.h" diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c index 34f45eb2d1..3149537f6a 100644 --- a/libavutil/parseutils.c +++ b/libavutil/parseutils.c @@ -25,6 +25,7 @@ #include "avstring.h" #include "avutil.h" +#include "common.h" #include "eval.h" #include "log.h" #include "random_seed.h" diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c index b6e785cb67..102376ae38 100644 --- a/libavutil/samplefmt.c +++ b/libavutil/samplefmt.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "common.h" #include "samplefmt.h" #include diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h index e3aa6a9c36..445856de73 100644 --- a/libavutil/samplefmt.h +++ b/libavutil/samplefmt.h @@ -19,7 +19,10 @@ #ifndef AVUTIL_SAMPLEFMT_H #define AVUTIL_SAMPLEFMT_H +#include + #include "avutil.h" +#include "attributes.h" /** * Audio Sample Formats diff --git a/libavutil/timer.h b/libavutil/timer.h index 78d2b5f8fc..ea5c891cf3 100644 --- a/libavutil/timer.h +++ b/libavutil/timer.h @@ -28,6 +28,7 @@ #include #include +#include #include "config.h" diff --git a/libavutil/tree.c b/libavutil/tree.c index e614f72cd8..0e68bb75f1 100644 --- a/libavutil/tree.c +++ b/libavutil/tree.c @@ -19,6 +19,7 @@ */ #include "log.h" +#include "mem.h" #include "tree.h" typedef struct AVTreeNode { @@ -157,6 +158,7 @@ void av_tree_enumerate(AVTreeNode *t, void *opaque, #ifdef TEST +#include "common.h" #include "lfg.h" static int check(AVTreeNode *t) diff --git a/libavutil/version.h b/libavutil/version.h index de5731a5a5..2dc821d8f1 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -37,7 +37,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 51 -#define LIBAVUTIL_VERSION_MINOR 38 +#define LIBAVUTIL_VERSION_MINOR 39 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ diff --git a/libswscale/colorspace-test.c b/libswscale/colorspace-test.c index 135924c1ab..1c4cc2ace7 100644 --- a/libswscale/colorspace-test.c +++ b/libswscale/colorspace-test.c @@ -26,6 +26,7 @@ #include "swscale.h" #include "rgb2rgb.h" +#include "libavutil/mem.h" #define SIZE 1000 #define srcByte 0x55 diff --git a/libswscale/swscale.h b/libswscale/swscale.h index c3efd48b1a..3b304d5629 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -27,6 +27,8 @@ * external api for the swscale stuff */ +#include + #include "libavutil/avutil.h" #include "libavutil/log.h" #include "libavutil/pixfmt.h" diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 2a7d2dbd1d..9583fb9464 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -28,6 +28,7 @@ #endif #include "libavutil/avutil.h" +#include "libavutil/common.h" #include "libavutil/log.h" #include "libavutil/pixfmt.h" #include "libavutil/pixdesc.h" diff --git a/tools/graph2dot.c b/tools/graph2dot.c index 6ea2f3206d..51a1ab109c 100644 --- a/tools/graph2dot.c +++ b/tools/graph2dot.c @@ -19,7 +19,10 @@ */ #include /* getopt */ +#include +#include +#include "libavutil/mem.h" #include "libavutil/pixdesc.h" #include "libavutil/audioconvert.h" #include "libavfilter/avfiltergraph.h"