diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-16 16:12:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-16 16:20:30 +0200 |
commit | c581cb4e4fd3f8387766d3606560b2900728883a (patch) | |
tree | ecaecc6d276510379d8e399e88937c10a778be85 /libavcodec | |
parent | 208d6e6615e3c2e09de5aab92745e13da86aa827 (diff) | |
parent | 232e35de2e139cc2d34ed67a34dedbbc5da56052 (diff) | |
download | ffmpeg-c581cb4e4fd3f8387766d3606560b2900728883a.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
Fix even more missing includes after the common.h removal
build: Factor out rangecoder dependencies to CONFIG_RANGECODER
build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE
x86: avcodec: Consistently name all init files
Add more missing includes after removing the implicit common.h
Add some more missing includes after removing the implicit common.h
Don't include common.h from avutil.h
rtmp: Automatically compute the hash for SWFVerification
Conflicts:
configure
doc/APIchanges
doc/examples/decoding_encoding.c
libavcodec/Makefile
libavcodec/assdec.c
libavcodec/audio_frame_queue.c
libavcodec/avpacket.c
libavcodec/dv_profile.c
libavcodec/dwt.c
libavcodec/libtheoraenc.c
libavcodec/rawdec.c
libavcodec/rv40dsp.c
libavcodec/tiff.c
libavcodec/tiffenc.c
libavcodec/v210dec.h
libavcodec/vc1dsp.c
libavcodec/x86/Makefile
libavfilter/asrc_anullsrc.c
libavfilter/avfilter.c
libavfilter/buffer.c
libavfilter/formats.c
libavfilter/vf_ass.c
libavfilter/vf_drawtext.c
libavfilter/vf_fade.c
libavfilter/vf_select.c
libavfilter/video.c
libavfilter/vsrc_testsrc.c
libavformat/version.h
libavutil/audioconvert.c
libavutil/error.h
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
151 files changed, 243 insertions, 51 deletions
diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c index 1dfd553673..af07c6a4ca 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 bf2b2787cd..f41b19fd58 100644 --- a/libavcodec/8svx.c +++ b/libavcodec/8svx.c @@ -39,6 +39,7 @@ #include "libavutil/avassert.h" #include "avcodec.h" +#include "libavutil/common.h" /** decoder context */ typedef struct EightSvxContext { diff --git a/libavcodec/Makefile b/libavcodec/Makefile index ed861aeaa6..e8a57aaaa3 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -41,6 +41,7 @@ OBJS-$(CONFIG_ENCODERS) += faandct.o jfdctfst.o jfdctint.o OBJS-$(CONFIG_DCT) += dct.o dct32_fixed.o dct32_float.o OBJS-$(CONFIG_DWT) += dwt.o snow.o OBJS-$(CONFIG_DXVA2) += dxva2.o +OBJS-$(CONFIG_ERROR_RESILIENCE) += error_resilience.o FFT-OBJS-$(CONFIG_HARDCODED_TABLES) += cos_tables.o cos_fixed_tables.o OBJS-$(CONFIG_FFT) += avfft.o fft_fixed.o fft_float.o \ $(FFT-OBJS-yes) @@ -58,6 +59,7 @@ OBJS-$(CONFIG_MPEGAUDIODSP) += mpegaudiodsp.o \ OBJS-$(CONFIG_MPEGVIDEO) += mpegvideo.o mpegvideo_motion.o OBJS-$(CONFIG_MPEGVIDEOENC) += mpegvideo_enc.o mpeg12data.o \ motion_est.o ratecontrol.o +OBJS-$(CONFIG_RANGECODER) += rangecoder.o RDFT-OBJS-$(CONFIG_HARDCODED_TABLES) += sin_tables.o OBJS-$(CONFIG_RDFT) += rdft.o $(RDFT-OBJS-yes) OBJS-$(CONFIG_SINEWIN) += sinewin.o @@ -164,19 +166,19 @@ OBJS-$(CONFIG_EAC3_ENCODER) += eac3enc.o ac3enc.o ac3enc_float.o \ ac3tab.o ac3.o kbdwin.o eac3_data.o OBJS-$(CONFIG_EACMV_DECODER) += eacmv.o OBJS-$(CONFIG_EAMAD_DECODER) += eamad.o eaidct.o mpeg12.o \ - mpeg12data.o error_resilience.o + mpeg12data.o OBJS-$(CONFIG_EATGQ_DECODER) += eatgq.o eaidct.o OBJS-$(CONFIG_EATGV_DECODER) += eatgv.o OBJS-$(CONFIG_EATQI_DECODER) += eatqi.o eaidct.o mpeg12.o \ - mpeg12data.o error_resilience.o + mpeg12data.o OBJS-$(CONFIG_EIGHTBPS_DECODER) += 8bps.o OBJS-$(CONFIG_EIGHTSVX_EXP_DECODER) += 8svx.o OBJS-$(CONFIG_EIGHTSVX_FIB_DECODER) += 8svx.o OBJS-$(CONFIG_ESCAPE124_DECODER) += escape124.o OBJS-$(CONFIG_ESCAPE130_DECODER) += escape130.o OBJS-$(CONFIG_EXR_DECODER) += exr.o -OBJS-$(CONFIG_FFV1_DECODER) += ffv1.o rangecoder.o -OBJS-$(CONFIG_FFV1_ENCODER) += ffv1.o rangecoder.o +OBJS-$(CONFIG_FFV1_DECODER) += ffv1.o +OBJS-$(CONFIG_FFV1_ENCODER) += ffv1.o OBJS-$(CONFIG_FFVHUFF_DECODER) += huffyuv.o OBJS-$(CONFIG_FFVHUFF_ENCODER) += huffyuv.o OBJS-$(CONFIG_FFWAVESYNTH_DECODER) += ffwavesynth.o @@ -198,20 +200,18 @@ OBJS-$(CONFIG_GIF_DECODER) += gifdec.o lzw.o OBJS-$(CONFIG_GIF_ENCODER) += gif.o lzwenc.o OBJS-$(CONFIG_GSM_DECODER) += gsmdec.o gsmdec_data.o msgsmdec.o OBJS-$(CONFIG_GSM_MS_DECODER) += gsmdec.o gsmdec_data.o msgsmdec.o -OBJS-$(CONFIG_H261_DECODER) += h261dec.o h261.o h261data.o error_resilience.o +OBJS-$(CONFIG_H261_DECODER) += h261dec.o h261.o h261data.o OBJS-$(CONFIG_H261_ENCODER) += h261enc.o h261.o h261data.o OBJS-$(CONFIG_H263_DECODER) += h263dec.o h263.o ituh263dec.o \ mpeg4video.o mpeg4videodec.o flvdec.o\ - intelh263dec.o error_resilience.o + intelh263dec.o OBJS-$(CONFIG_H263_VAAPI_HWACCEL) += vaapi_mpeg4.o OBJS-$(CONFIG_H263_ENCODER) += mpeg4videoenc.o mpeg4video.o \ - h263.o ituh263enc.o flvenc.o \ - error_resilience.o + h263.o ituh263enc.o flvenc.o OBJS-$(CONFIG_H264_DECODER) += h264.o \ h264_loopfilter.o h264_direct.o \ cabac.o h264_sei.o h264_ps.o \ - h264_refs.o h264_cavlc.o h264_cabac.o\ - error_resilience.o + h264_refs.o h264_cavlc.o h264_cabac.o OBJS-$(CONFIG_H264_DXVA2_HWACCEL) += dxva2_h264.o OBJS-$(CONFIG_H264_VAAPI_HWACCEL) += vaapi_h264.o OBJS-$(CONFIG_H264_VDA_HWACCEL) += vda_h264.o @@ -243,8 +243,7 @@ OBJS-$(CONFIG_LJPEG_ENCODER) += ljpegenc.o mjpegenc.o mjpeg.o OBJS-$(CONFIG_LOCO_DECODER) += loco.o OBJS-$(CONFIG_MACE3_DECODER) += mace.o OBJS-$(CONFIG_MACE6_DECODER) += mace.o -OBJS-$(CONFIG_MDEC_DECODER) += mdec.o mpeg12.o mpeg12data.o \ - error_resilience.o +OBJS-$(CONFIG_MDEC_DECODER) += mdec.o mpeg12.o mpeg12data.o OBJS-$(CONFIG_MICRODVD_DECODER) += microdvddec.o ass.o OBJS-$(CONFIG_MIMIC_DECODER) += mimic.o OBJS-$(CONFIG_MJPEG_DECODER) += mjpegdec.o mjpeg.o @@ -288,18 +287,14 @@ OBJS-$(CONFIG_MPC8_DECODER) += mpc8.o mpc.o mpegaudiodec.o \ OBJS-$(CONFIG_MPEGVIDEO_DECODER) += mpeg12.o mpeg12data.o \ mpegvideo.o error_resilience.o OBJS-$(CONFIG_MPEG_XVMC_DECODER) += mpegvideo_xvmc.o -OBJS-$(CONFIG_MPEG1VIDEO_DECODER) += mpeg12.o mpeg12data.o \ - error_resilience.o +OBJS-$(CONFIG_MPEG1VIDEO_DECODER) += mpeg12.o mpeg12data.o OBJS-$(CONFIG_MPEG1VIDEO_ENCODER) += mpeg12enc.o mpeg12.o \ - timecode.o \ - error_resilience.o + timecode.o OBJS-$(CONFIG_MPEG2_DXVA2_HWACCEL) += dxva2_mpeg2.o OBJS-$(CONFIG_MPEG2_VAAPI_HWACCEL) += vaapi_mpeg2.o -OBJS-$(CONFIG_MPEG2VIDEO_DECODER) += mpeg12.o mpeg12data.o \ - error_resilience.o +OBJS-$(CONFIG_MPEG2VIDEO_DECODER) += mpeg12.o mpeg12data.o OBJS-$(CONFIG_MPEG2VIDEO_ENCODER) += mpeg12enc.o mpeg12.o \ - timecode.o \ - error_resilience.o + timecode.o OBJS-$(CONFIG_MPEG4_VAAPI_HWACCEL) += vaapi_mpeg4.o OBJS-$(CONFIG_MSMPEG4V1_DECODER) += msmpeg4.o msmpeg4data.o OBJS-$(CONFIG_MSMPEG4V2_DECODER) += msmpeg4.o msmpeg4data.o h263dec.o \ @@ -380,10 +375,8 @@ OBJS-$(CONFIG_RV10_DECODER) += rv10.o OBJS-$(CONFIG_RV10_ENCODER) += rv10enc.o OBJS-$(CONFIG_RV20_DECODER) += rv10.o OBJS-$(CONFIG_RV20_ENCODER) += rv20enc.o -OBJS-$(CONFIG_RV30_DECODER) += rv30.o rv34.o rv30dsp.o rv34dsp.o \ - error_resilience.o -OBJS-$(CONFIG_RV40_DECODER) += rv40.o rv34.o rv34dsp.o rv40dsp.o \ - error_resilience.o +OBJS-$(CONFIG_RV30_DECODER) += rv30.o rv34.o rv30dsp.o rv34dsp.o +OBJS-$(CONFIG_RV40_DECODER) += rv40.o rv34.o rv34dsp.o rv40dsp.o OBJS-$(CONFIG_SAMI_DECODER) += samidec.o ass.o OBJS-$(CONFIG_S302M_DECODER) += s302m.o OBJS-$(CONFIG_SANM_DECODER) += sanm.o @@ -397,10 +390,9 @@ OBJS-$(CONFIG_SIPR_DECODER) += sipr.o acelp_pitch_delay.o \ OBJS-$(CONFIG_SMACKAUD_DECODER) += smacker.o OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o OBJS-$(CONFIG_SMC_DECODER) += smc.o -OBJS-$(CONFIG_SNOW_DECODER) += snowdec.o snow.o rangecoder.o -OBJS-$(CONFIG_SNOW_ENCODER) += snowenc.o snow.o rangecoder.o \ - h263.o ituh263enc.o \ - error_resilience.o +OBJS-$(CONFIG_SNOW_DECODER) += snowdec.o snow.o +OBJS-$(CONFIG_SNOW_ENCODER) += snowenc.o snow.o \ + h263.o ituh263enc.o OBJS-$(CONFIG_SOL_DPCM_DECODER) += dpcm.o OBJS-$(CONFIG_SONIC_DECODER) += sonic.o OBJS-$(CONFIG_SONIC_ENCODER) += sonic.o @@ -413,16 +405,13 @@ OBJS-$(CONFIG_SUBRIP_ENCODER) += srtenc.o ass_split.o OBJS-$(CONFIG_SUBVIEWER_DECODER) += subviewerdec.o ass.o OBJS-$(CONFIG_SUNRAST_DECODER) += sunrast.o OBJS-$(CONFIG_SUNRAST_ENCODER) += sunrastenc.o -OBJS-$(CONFIG_SVQ1_DECODER) += svq1dec.o svq1.o h263.o \ - error_resilience.o +OBJS-$(CONFIG_SVQ1_DECODER) += svq1dec.o svq1.o h263.o OBJS-$(CONFIG_SVQ1_ENCODER) += svq1enc.o svq1.o \ - h263.o ituh263enc.o \ - error_resilience.o + h263.o ituh263enc.o OBJS-$(CONFIG_SVQ3_DECODER) += h264.o svq3.o \ h264_loopfilter.o h264_direct.o \ h264_sei.o h264_ps.o h264_refs.o \ h264_cavlc.o h264_cabac.o cabac.o \ - error_resilience.o \ svq1dec.o svq1.o h263.o OBJS-$(CONFIG_TARGA_DECODER) += targa.o OBJS-$(CONFIG_TARGA_ENCODER) += targaenc.o rle.o @@ -715,27 +704,24 @@ OBJS-$(CONFIG_H264_PARSER) += h264_parser.o h264.o \ cabac.o \ h264_refs.o h264_sei.o h264_direct.o \ h264_loopfilter.o h264_cabac.o \ - h264_cavlc.o h264_ps.o \ - error_resilience.o + h264_cavlc.o h264_ps.o OBJS-$(CONFIG_AAC_LATM_PARSER) += latm_parser.o OBJS-$(CONFIG_MJPEG_PARSER) += mjpeg_parser.o OBJS-$(CONFIG_MLP_PARSER) += mlp_parser.o mlp.o OBJS-$(CONFIG_MPEG4VIDEO_PARSER) += mpeg4video_parser.o h263.o \ - error_resilience.o \ mpeg4videodec.o mpeg4video.o \ ituh263dec.o h263dec.o OBJS-$(CONFIG_PNG_PARSER) += png_parser.o OBJS-$(CONFIG_MPEGAUDIO_PARSER) += mpegaudio_parser.o \ mpegaudiodecheader.o mpegaudiodata.o OBJS-$(CONFIG_MPEGVIDEO_PARSER) += mpegvideo_parser.o \ - mpeg12.o mpeg12data.o \ - error_resilience.o + mpeg12.o mpeg12data.o OBJS-$(CONFIG_PNM_PARSER) += pnm_parser.o pnm.o OBJS-$(CONFIG_RV30_PARSER) += rv34_parser.o OBJS-$(CONFIG_RV40_PARSER) += rv34_parser.o OBJS-$(CONFIG_VC1_PARSER) += vc1_parser.o vc1.o vc1data.o \ msmpeg4.o msmpeg4data.o mpeg4video.o \ - h263.o error_resilience.o + h263.o OBJS-$(CONFIG_VORBIS_PARSER) += vorbis_parser.o xiph.o OBJS-$(CONFIG_VP3_PARSER) += vp3_parser.o OBJS-$(CONFIG_VP8_PARSER) += vp8_parser.o diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c index a18697c86b..658a8ab12b 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 f6c4fb2605..6f1e188c20 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 831d672cda..5260d0dbc5 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 667c49ba20..48230e013c 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 c7036477a9..704001982e 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 98147732ed..4a247c4a67 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 6b24002145..1ac73abe86 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 ec3bc6500e..d97cbc5ae2 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 bc7dbe7a06..7fef305cf8 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/ass.c b/libavcodec/ass.c index 6f1719bc5e..6eb92f7610 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" int ff_ass_subtitle_header(AVCodecContext *avctx, const char *font, int font_size, diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c index 9709247c2d..5a51703e86 100644 --- a/libavcodec/assdec.c +++ b/libavcodec/assdec.c @@ -19,9 +19,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <string.h> + #include "avcodec.h" #include "ass.h" #include "ass_split.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 d4a53da76b..779a55a1f7 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 39f23d8559..cb2f7ba736 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 999aa93c6b..ec515d949a 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 "audio_frame_queue.h" #include "internal.h" #include "libavutil/avassert.h" diff --git a/libavcodec/audioconvert.c b/libavcodec/audioconvert.c index 74c6600849..5d8a3485e6 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 e16232c6e3..d79daba72c 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 2f82d29b8f..b0c734dcc7 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -19,10 +19,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "internal.h" +#include <string.h> + #include "libavutil/avassert.h" -#include "bytestream.h" +#include "libavutil/mem.h" #include "avcodec.h" +#include "bytestream.h" +#include "internal.h" void av_destruct_packet_nofree(AVPacket *pkt) { diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c index 7d5c9c52ff..328a9f6a34 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 192e0f976d..b1b0d67c05 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 cf2198d325..9dac77eb4a 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 090b9d8207..e9bb0d3892 100644 --- a/libavcodec/celp_math.c +++ b/libavcodec/celp_math.c @@ -27,6 +27,7 @@ #include "avcodec.h" #include "mathops.h" #include "celp_math.h" +#include "libavutil/common.h" #ifdef G729_BITEXACT /** diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c index 586449849b..391e787075 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 ae099a1048..d702b7faf3 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -21,6 +21,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 67851a2231..bdcfdcc052 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 9936b22583..e472a4016e 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 4800e13b36..2782bd96f4 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 60b2ee1f88..a7c7c328ad 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 8cb58b3104..c3d2204838 100644 --- a/libavcodec/dnxhddata.c +++ b/libavcodec/dnxhddata.c @@ -21,6 +21,7 @@ #include "avcodec.h" #include "dnxhddata.h" +#include "libavutil/common.h" /* The quantization tables below are in zigzag order! */ diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index 021a05c28a..09ab14a2e3 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 9499d6d8d8..94b7b428bf 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 4264098912..cd06b289a3 100644 --- a/libavcodec/dv_profile.c +++ b/libavcodec/dv_profile.c @@ -18,6 +18,7 @@ #include <stdint.h> +#include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/pixdesc.h" diff --git a/libavcodec/dvdsub_parser.c b/libavcodec/dvdsub_parser.c index c441dad586..e50c3396e4 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 0a9689936f..a615e07d8f 100644 --- a/libavcodec/dwt.c +++ b/libavcodec/dwt.c @@ -21,6 +21,7 @@ #include "libavutil/attributes.h" #include "libavutil/avassert.h" +#include "libavutil/common.h" #include "dsputil.h" #include "dwt.h" #include "libavcodec/x86/dwt.h" diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index 79d3eb3b0e..389705eb27 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 76680a87ce..6b23758470 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 d1bc350098..175c1c47c0 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 4f399e7c93..18d96db1e4 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 dc3d8fbb81..1e9bfaf48a 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 c03117c2cd..7f2dc7f038 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 da4d0a7a82..d3c72981ca 100644 --- a/libavcodec/g722enc.c +++ b/libavcodec/g722enc.c @@ -31,6 +31,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 3f69d7c676..2dea93301a 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 e247677df3..ce6545ba8e 100644 --- a/libavcodec/h264dsp.c +++ b/libavcodec/h264dsp.c @@ -29,6 +29,7 @@ #include "libavutil/avassert.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 5c730fdb26..313732b466 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 0decd0f731..26d408ff5e 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 4785a7c7c2..3774d6ebb7 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 6be366f44d..39f0fd56e1 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 2983f3de63..e011e2b4ad 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 2c21f774e8..88e65c906f 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 5c7e1539df..d416661dcd 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 56b88b5707..af5d6de072 100644 --- a/libavcodec/lclenc.c +++ b/libavcodec/lclenc.c @@ -45,6 +45,8 @@ #include "avcodec.h" #include "internal.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 69d362190b..0bfed1e0fc 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 4219dbf700..e598bd5d19 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 9c8635a910..97f8abe10a 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_close(AVCodecContext *avctx) { #if FF_API_OLD_ENCODE_AUDIO diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c index 80f1ac5688..703e1cd2e4 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 6c159e235e..6b7771c0ab 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 cf325d03ae..8ad7090d2a 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 2140377841..0442619efc 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 fd08b4d3c6..89df35b12e 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 13a4d3516b..2d4ec6e7a2 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -31,6 +31,7 @@ */ /* FFmpeg 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 a2f0288536..66d6905094 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 fcacd77fd0..c0f9f36df1 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 756a543b9d..019983f8e1 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -32,6 +32,7 @@ #include "internal.h" #include "libavutil/avassert.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 d5af74dfa8..45fe2acd9d 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 4d2ae799e2..3e5e3d63ad 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 19f3e110f4..d06e3a0ce5 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 8ebb6bf19d..4c7097943f 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 ab53f19ed5..1959d38721 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 088c774001..a745190d36 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 417a2940d5..3c5e2fb3bb 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 c08aa1fa05..adf5a7f426 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 2d61975d2a..afa297551c 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 07c52e3565..21ba7d7f8c 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 491fbccc1d..1cab3e1dba 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 7e70aac375..c30ba50979 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -24,6 +24,7 @@ #include <limits.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 5dfc9c8241..e64bc9edf8 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 84c3ac9b88..60e803a3be 100644 --- a/libavcodec/options_table.h +++ b/libavcodec/options_table.h @@ -27,6 +27,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 f081945d26..df5ecb3b87 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 d1f39ca2bd..a5cf766894 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/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index c6fdc8e592..f827a2a2f0 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -20,7 +20,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <string.h> + #include "libavutil/cpu.h" +#include "libavutil/mem.h" #include "libavcodec/dsputil.h" #include "dsputil_altivec.h" diff --git a/libavcodec/ppc/fmtconvert_altivec.c b/libavcodec/ppc/fmtconvert_altivec.c index 1e1a3b6865..3cb11543dd 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 fadf498f09..4e361214d0 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 2573e9c6f7..6121ea1f54 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 4c86ca5f74..14d87845dc 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 a21003cc22..867e4030e9 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 cc1da5018a..a4a7cbb683 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 0d97998f13..d7ff5f6dec 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -53,6 +53,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 b49b9065de..0d6762fcfd 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 0bea69c755..6c61b505a5 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 ac99522b88..f8db4a9674 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 761f595934..c54be50cc4 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 15c9a7bc9a..0432bed485 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 33160c4084..2cc69a6e8d 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 e7c83032a0..9920e7875e 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -28,6 +28,7 @@ #include "imgconvert.h" #include "raw.h" #include "libavutil/avassert.h" +#include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" #include "libavutil/opt.h" diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index d03049aea8..9d61e81618 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 a601e7aac7..04e5aab371 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 f82b405bba..38186121ca 100644 --- a/libavcodec/resample2.c +++ b/libavcodec/resample2.c @@ -28,6 +28,7 @@ #include "libavutil/avassert.h" #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 f30cb01c1d..151b884a3b 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 6e468f8991..d2ec68c407 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 3944e10463..b12bf04fa2 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 48c84ff505..5b359db9eb 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 2a39686dcd..66f53263f2 100644 --- a/libavcodec/rv40dsp.c +++ b/libavcodec/rv40dsp.c @@ -28,6 +28,7 @@ #include "dsputil.h" #include "rv34dsp.h" #include "libavutil/avassert.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 e0ae7bffbc..90406a9f0f 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 dd7d992ae1..2b9c4f2393 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 608636e442..8872fa326e 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 7fb9252927..96079d93b5 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/sparc/dsputil_vis.c b/libavcodec/sparc/dsputil_vis.c index 9576082535..5b5b96e60f 100644 --- a/libavcodec/sparc/dsputil_vis.c +++ b/libavcodec/sparc/dsputil_vis.c @@ -27,6 +27,7 @@ #include <inttypes.h> #include "libavcodec/dsputil.h" +#include "libavutil/mem.h" #include "dsputil_vis.h" #include "vis.h" diff --git a/libavcodec/sparc/simple_idct_vis.c b/libavcodec/sparc/simple_idct_vis.c index d98bf37651..45ca010588 100644 --- a/libavcodec/sparc/simple_idct_vis.c +++ b/libavcodec/sparc/simple_idct_vis.c @@ -22,8 +22,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <stdint.h> + #include "libavcodec/dsputil.h" #include "dsputil_vis.h" +#include "libavutil/mem.h" static const DECLARE_ALIGNED(8, int16_t, coeffs)[28] = { - 1259,- 1259,- 1259,- 1259, diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c index 3d3ace0a87..f32521f771 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 a8c0151cd4..7724f0fdb2 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 89356b05b9..555b26e86e 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 65081b32ff..26401b1509 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -26,6 +26,7 @@ #include "avcodec.h" #include "bytestream.h" +#include "config.h" #if CONFIG_ZLIB #include <zlib.h> #endif diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 3f2a0b6daa..883d6fb8a2 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -30,12 +30,12 @@ #include "libavutil/opt.h" #include "avcodec.h" -#include "internal.h" +#include "config.h" #if CONFIG_ZLIB #include <zlib.h> #endif -#include "libavutil/opt.h" #include "bytestream.h" +#include "internal.h" #include "tiff.h" #include "rle.h" #include "lzw.h" diff --git a/libavcodec/tmv.c b/libavcodec/tmv.c index 438518f32f..e2397ce379 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 15a5aaaee3..fd4a355f12 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 dfad3069c8..ccac0ac9c5 100644 --- a/libavcodec/v210dec.c +++ b/libavcodec/v210dec.c @@ -24,6 +24,8 @@ #include "avcodec.h" #include "v210dec.h" #include "libavutil/bswap.h" +#include "libavutil/internal.h" +#include "libavutil/mem.h" #define READ_PIXELS(a, b, c) \ do { \ diff --git a/libavcodec/v210x.c b/libavcodec/v210x.c index bf37426ecd..ca847b7b39 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 1608ae5b30..180fcc0aea 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 9531104597..b697b44ab4 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 d113c02267..c2b7eff278 100644 --- a/libavcodec/vc1dsp.c +++ b/libavcodec/vc1dsp.c @@ -27,6 +27,8 @@ #include "vc1dsp.h" #include "libavutil/avassert.h" +#include "libavutil/common.h" + /** Apply overlap transform to horizontal edge */ diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index 5403c1be64..cbbec53c2b 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 b7a0b8ad51..3834416857 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 4082e02698..6d091c1bd2 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 aab06b7453..f4b25fbf20 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 4c5ff6a448..0e0c0f58ae 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 9ab8a89411..339c3d210c 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 1ee070c78b..bacd10e25c 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 e148a6ee92..dfa02b6954 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/Makefile b/libavcodec/x86/Makefile index 0ad3457738..21eeb05bf3 100644 --- a/libavcodec/x86/Makefile +++ b/libavcodec/x86/Makefile @@ -25,9 +25,9 @@ MMX-OBJS-$(CONFIG_H264DSP) += x86/h264dsp_init.o MMX-OBJS-$(CONFIG_H264PRED) += x86/h264_intrapred_init.o MMX-OBJS-$(CONFIG_LPC) += x86/lpc_mmx.o MMX-OBJS-$(CONFIG_MPEGAUDIODSP) += x86/mpegaudiodec_mmx.o -MMX-OBJS-$(CONFIG_PNG_DECODER) += x86/pngdsp-init.o -MMX-OBJS-$(CONFIG_PRORES_DECODER) += x86/proresdsp-init.o -MMX-OBJS-$(CONFIG_PRORES_LGPL_DECODER) += x86/proresdsp-init.o +MMX-OBJS-$(CONFIG_PNG_DECODER) += x86/pngdsp_init.o +MMX-OBJS-$(CONFIG_PRORES_DECODER) += x86/proresdsp_init.o +MMX-OBJS-$(CONFIG_PRORES_LGPL_DECODER) += x86/proresdsp_init.o MMX-OBJS-$(CONFIG_RV30_DECODER) += x86/rv34dsp_init.o MMX-OBJS-$(CONFIG_RV40_DECODER) += x86/rv34dsp_init.o \ x86/rv40dsp_init.o @@ -35,7 +35,7 @@ MMX-OBJS-$(CONFIG_V210_DECODER) += x86/v210-init.o MMX-OBJS-$(CONFIG_VC1_DECODER) += x86/vc1dsp_mmx.o MMX-OBJS-$(CONFIG_VP5_DECODER) += x86/vp56dsp_init.o MMX-OBJS-$(CONFIG_VP6_DECODER) += x86/vp56dsp_init.o -MMX-OBJS-$(CONFIG_VP8_DECODER) += x86/vp8dsp-init.o +MMX-OBJS-$(CONFIG_VP8_DECODER) += x86/vp8dsp_init.o YASM-OBJS-$(CONFIG_AAC_DECODER) += x86/sbrdsp.o YASM-OBJS-$(CONFIG_AC3DSP) += x86/ac3dsp.o diff --git a/libavcodec/x86/idct_mmx_xvid.c b/libavcodec/x86/idct_mmx_xvid.c index 5d8027fb27..29286b647a 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 0f4f53c655..33f9de5f92 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 e0e6f8ba8a..1aac553bb0 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 0cd0e4c2fb..48c6d89e3d 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 06da8fa9db..6bcd240200 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/pngdsp-init.c b/libavcodec/x86/pngdsp_init.c index 7a12730620..7a12730620 100644 --- a/libavcodec/x86/pngdsp-init.c +++ b/libavcodec/x86/pngdsp_init.c diff --git a/libavcodec/x86/proresdsp-init.c b/libavcodec/x86/proresdsp_init.c index c4aeb7f503..a99a938de2 100644 --- a/libavcodec/x86/proresdsp-init.c +++ b/libavcodec/x86/proresdsp_init.c @@ -3,20 +3,20 @@ * * Copyright (c) 2010-2011 Maxim Poliakovski * - * This file is part of Libav. + * This file is part of FFmpeg. * - * Libav is free software; you can redistribute it and/or + * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * Libav is distributed in the hope that it will be useful, + * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software + * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ diff --git a/libavcodec/x86/rv40dsp_init.c b/libavcodec/x86/rv40dsp_init.c index c508ac9328..1c193076b0 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 20e51a47f4..314aca6c86 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 8b490b6204..9ea6042e4e 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 0dc6ba9f2c..a7e351ad9a 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 bcdfb2d986..a82ceaaaf9 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 11db4982bb..b0f6e939ba 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 6ccee39855..0a4f1cdd6c 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 117d25fb8f..df5b90f1ce 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" |