| Index: patches/to_upstream/06_respect_flac_dirac_configure.patch
|
| ===================================================================
|
| --- patches/to_upstream/06_respect_flac_dirac_configure.patch (revision 41250)
|
| +++ patches/to_upstream/06_respect_flac_dirac_configure.patch (working copy)
|
| @@ -1,8 +1,8 @@
|
| -Index: patched-ffmpeg-mt/libavcodec/Makefile
|
| -===================================================================
|
| ---- patched-ffmpeg-mt/libavcodec/Makefile (revision 40304)
|
| -+++ patched-ffmpeg-mt/libavcodec/Makefile (working copy)
|
| -@@ -460,8 +460,7 @@
|
| +Only in unpatched_ffmpeg-mt: ffmpeg-mt
|
| +diff -rpu unpatched_ffmpeg-mt/libavcodec/Makefile ffmpeg-mt/libavcodec/Makefile
|
| +--- unpatched_ffmpeg-mt/libavcodec/Makefile 2010-03-11 17:46:30 -0800
|
| ++++ ffmpeg-mt/libavcodec/Makefile 2010-03-11 19:12:33 -0800
|
| +@@ -493,8 +493,7 @@ OBJS-$(CONFIG_MATROSKA_MUXER) +
|
| OBJS-$(CONFIG_MOV_DEMUXER) += mpeg4audio.o mpegaudiodata.o
|
| OBJS-$(CONFIG_MPEGTS_MUXER) += mpegvideo.o
|
| OBJS-$(CONFIG_NUT_MUXER) += mpegaudiodata.o
|
| @@ -11,86 +11,158 @@
|
| +OBJS-$(CONFIG_OGG_DEMUXER) += dirac.o mpeg12data.o
|
| OBJS-$(CONFIG_OGG_MUXER) += xiph.o flacdec.o flacdata.o flac.o
|
| OBJS-$(CONFIG_RTP_MUXER) += mpegvideo.o
|
| -
|
| -Index: patched-ffmpeg-mt/libavformat/oggdec.c
|
| -===================================================================
|
| ---- patched-ffmpeg-mt/libavformat/oggdec.c (revision 40304)
|
| -+++ patched-ffmpeg-mt/libavformat/oggdec.c (working copy)
|
| -@@ -39,12 +39,18 @@
|
| -
|
| - static const struct ogg_codec * const ogg_codecs[] = {
|
| - &ff_dirac_codec,
|
| -+#if CONFIG_LIBSPEEX
|
| - &ff_speex_codec,
|
| -+#endif
|
| - &ff_vorbis_codec,
|
| - &ff_theora_codec,
|
| -+#if CONFIG_FLAC_DECODER
|
| - &ff_flac_codec,
|
| -+#endif
|
| - &ff_old_dirac_codec,
|
| -+#if CONFIG_FLAC_DECODER
|
| - &ff_old_flac_codec,
|
| -+#endif
|
| - &ff_ogm_video_codec,
|
| - &ff_ogm_audio_codec,
|
| - &ff_ogm_text_codec,
|
| -Index: patched-ffmpeg-mt/libavformat/Makefile
|
| -===================================================================
|
| ---- patched-ffmpeg-mt/libavformat/Makefile (revision 40304)
|
| -+++ patched-ffmpeg-mt/libavformat/Makefile (working copy)
|
| -@@ -142,12 +142,12 @@
|
| +
|
| +@@ -564,6 +563,14 @@ OBJS-$(CONFIG_VP3_PARSER) +
|
| + OBJS-$(CONFIG_AAC_ADTSTOASC_BSF) += aac_adtstoasc_bsf.o
|
| + OBJS-$(CONFIG_DUMP_EXTRADATA_BSF) += dump_extradata_bsf.o
|
| + OBJS-$(CONFIG_H264_MP4TOANNEXB_BSF) += h264_mp4toannexb_bsf.o
|
| ++OBJS-$(CONFIG_MPEG4VIDEO_ES_BSF) += mpeg4video_es_bsf.o \
|
| ++ mpeg4videoenc.o ituh263enc.o \
|
| ++ mpegvideo_enc.o motion_est.o \
|
| ++ ratecontrol.o mpeg12data.o \
|
| ++ aandcttab.o jfdctfst.o \
|
| ++ jfdctint.o faandct.o \
|
| ++ mpeg4video_parser.o mpegvideo.o \
|
| ++ error_resilience.o
|
| + OBJS-$(CONFIG_IMX_DUMP_HEADER_BSF) += imx_dump_header_bsf.o
|
| + OBJS-$(CONFIG_MJPEGA_DUMP_HEADER_BSF) += mjpega_dump_header_bsf.o
|
| + OBJS-$(CONFIG_MOV2TEXTSUB_BSF) += movsub_bsf.o
|
| +@@ -573,6 +580,9 @@ OBJS-$(CONFIG_MP3_HEADER_DECOMPRESS_BSF)
|
| + OBJS-$(CONFIG_NOISE_BSF) += noise_bsf.o
|
| + OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF) += remove_extradata_bsf.o
|
| + OBJS-$(CONFIG_TEXT2MOVSUB_BSF) += movsub_bsf.o
|
| ++OBJS-$(CONFIG_VC1_ASFTORCV_BSF) += vc1_asftorcv_bsf.o
|
| ++OBJS-$(CONFIG_VC1_ASFTOANNEXG_BSF) += vc1_asftoannexg_bsf.o vc1.o \
|
| ++ vc1data.o
|
| +
|
| + # thread libraries
|
| + OBJS-$(HAVE_BEOSTHREADS) += beosthread.o
|
| +Only in ffmpeg-mt/libavcodec: Makefile~
|
| +diff -rpu unpatched_ffmpeg-mt/libavcodec/allcodecs.c ffmpeg-mt/libavcodec/allcodecs.c
|
| +--- unpatched_ffmpeg-mt/libavcodec/allcodecs.c 2010-03-11 17:46:29 -0800
|
| ++++ ffmpeg-mt/libavcodec/allcodecs.c 2010-03-11 19:12:19 -0800
|
| +@@ -384,13 +384,15 @@ void avcodec_register_all(void)
|
| + REGISTER_BSF (AAC_ADTSTOASC, aac_adtstoasc);
|
| + REGISTER_BSF (DUMP_EXTRADATA, dump_extradata);
|
| + REGISTER_BSF (H264_MP4TOANNEXB, h264_mp4toannexb);
|
| ++ REGISTER_BSF (MPEG4VIDEO_ES, mpeg4video_es);
|
| + REGISTER_BSF (IMX_DUMP_HEADER, imx_dump_header);
|
| + REGISTER_BSF (MJPEGA_DUMP_HEADER, mjpega_dump_header);
|
| + REGISTER_BSF (MP3_HEADER_COMPRESS, mp3_header_compress);
|
| + REGISTER_BSF (MP3_HEADER_DECOMPRESS, mp3_header_decompress);
|
| ++ REGISTER_BSF (VC1_ASFTORCV, vc1_asftorcv);
|
| ++ REGISTER_BSF (VC1_ASFTOANNEXG, vc1_asftoannexg);
|
| + REGISTER_BSF (MOV2TEXTSUB, mov2textsub);
|
| + REGISTER_BSF (NOISE, noise);
|
| + REGISTER_BSF (REMOVE_EXTRADATA, remove_extradata);
|
| + REGISTER_BSF (TEXT2MOVSUB, text2movsub);
|
| + }
|
| +-
|
| +Only in ffmpeg-mt/libavcodec: allcodecs.c~
|
| +diff -rpu unpatched_ffmpeg-mt/libavcodec/mpeg4video.h ffmpeg-mt/libavcodec/mpeg4video.h
|
| +--- unpatched_ffmpeg-mt/libavcodec/mpeg4video.h 2010-03-11 17:46:30 -0800
|
| ++++ ffmpeg-mt/libavcodec/mpeg4video.h 2010-03-11 19:12:02 -0800
|
| +@@ -91,6 +91,9 @@ void mpeg4_encode_mb(MpegEncContext *s,
|
| + void mpeg4_pred_ac(MpegEncContext * s, DCTELEM *block, int n,
|
| + int dir);
|
| + void ff_set_mpeg4_time(MpegEncContext * s);
|
| ++void mpeg4_encode_gop_header(MpegEncContext * s);
|
| ++void mpeg4_encode_visual_object_header(MpegEncContext * s);
|
| ++void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number);
|
| + void mpeg4_encode_picture_header(MpegEncContext *s, int picture_number);
|
| +
|
| + int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb);
|
| +Only in ffmpeg-mt/libavcodec: mpeg4video.h~
|
| +Only in ffmpeg-mt/libavcodec: mpeg4video_es_bsf.c
|
| +diff -rpu unpatched_ffmpeg-mt/libavcodec/mpeg4videoenc.c ffmpeg-mt/libavcodec/mpeg4videoenc.c
|
| +--- unpatched_ffmpeg-mt/libavcodec/mpeg4videoenc.c 2010-03-11 17:46:30 -0800
|
| ++++ ffmpeg-mt/libavcodec/mpeg4videoenc.c 2010-03-11 19:12:02 -0800
|
| +@@ -872,7 +872,7 @@ void ff_set_mpeg4_time(MpegEncContext *
|
| + }
|
| + }
|
| +
|
| +-static void mpeg4_encode_gop_header(MpegEncContext * s){
|
| ++void mpeg4_encode_gop_header(MpegEncContext * s){
|
| + int hours, minutes, seconds;
|
| + int64_t time;
|
| +
|
| +@@ -902,7 +902,7 @@ static void mpeg4_encode_gop_header(Mpeg
|
| + ff_mpeg4_stuffing(&s->pb);
|
| + }
|
| +
|
| +-static void mpeg4_encode_visual_object_header(MpegEncContext * s){
|
| ++void mpeg4_encode_visual_object_header(MpegEncContext * s){
|
| + int profile_and_level_indication;
|
| + int vo_ver_id;
|
| +
|
| +@@ -947,7 +947,7 @@ static void mpeg4_encode_visual_object_h
|
| + ff_mpeg4_stuffing(&s->pb);
|
| + }
|
| +
|
| +-static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number)
|
| ++void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number)
|
| + {
|
| + int vo_ver_id;
|
| +
|
| +Only in ffmpeg-mt/libavcodec: vc1_asftoannexg_bsf.c
|
| +Only in ffmpeg-mt/libavcodec: vc1_asftorcv_bsf.c
|
| +diff -rpu unpatched_ffmpeg-mt/libavformat/Makefile ffmpeg-mt/libavformat/Makefile
|
| +--- unpatched_ffmpeg-mt/libavformat/Makefile 2010-03-11 17:46:31 -0800
|
| ++++ ffmpeg-mt/libavformat/Makefile 2010-03-11 19:12:33 -0800
|
| +@@ -141,13 +141,13 @@ OBJS-$(CONFIG_NUT_DEMUXER)
|
| + OBJS-$(CONFIG_NUT_MUXER) += nutenc.o nut.o riff.o
|
| OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o riff.o
|
| OBJS-$(CONFIG_OGG_DEMUXER) += oggdec.o \
|
| - oggparsedirac.o \
|
| +- oggparsedirac.o \
|
| - oggparseflac.o \
|
| oggparseogm.o \
|
| - oggparsespeex.o \
|
| oggparsetheora.o \
|
| oggparsevorbis.o \
|
| riff.o
|
| ++OBJS-$(CONFIG_DIRAC_DEMUXER) += oggparsedirac.o
|
| +OBJS-$(CONFIG_FLAC_DECODER) += oggparseflac.o
|
| +OBJS-$(CONFIG_LIBSPEEX) += oggparsespeex.o
|
| OBJS-$(CONFIG_OGG_MUXER) += oggenc.o
|
| OBJS-$(CONFIG_OMA_DEMUXER) += oma.o raw.o
|
| OBJS-$(CONFIG_PCM_ALAW_DEMUXER) += raw.o
|
| ---- ffmpeg-mt/libavformat/Makefile 2010-03-01 16:14:56 -0800
|
| -+++ patched-ffmpeg-mt/libavformat/Makefile 2010-03-01 16:35:53 -0800
|
| -@@ -141,11 +141,11 @@
|
| - OBJS-$(CONFIG_NUT_MUXER) += nutenc.o nut.o riff.o
|
| - OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o riff.o
|
| - OBJS-$(CONFIG_OGG_DEMUXER) += oggdec.o \
|
| -- oggparsedirac.o \
|
| - oggparseogm.o \
|
| - oggparsetheora.o \
|
| - oggparsevorbis.o \
|
| - riff.o
|
| -+OBJS-$(CONFIG_DIRAC_DEMUXER) += oggparsedirac.o
|
| - OBJS-$(CONFIG_FLAC_DECODER) += oggparseflac.o
|
| - OBJS-$(CONFIG_LIBSPEEX) += oggparsespeex.o
|
| - OBJS-$(CONFIG_OGG_MUXER) += oggenc.o
|
| -diff -r -u ffmpeg-mt/libavformat/oggdec.c patched-ffmpeg-mt/libavformat/oggdec.c
|
| ---- ffmpeg-mt/libavformat/oggdec.c 2010-03-01 16:14:56 -0800
|
| -+++ patched-ffmpeg-mt/libavformat/oggdec.c 2010-03-01 16:35:53 -0800
|
| -@@ -38,7 +38,9 @@
|
| +diff -rpu unpatched_ffmpeg-mt/libavformat/mov.c ffmpeg-mt/libavformat/mov.c
|
| +--- unpatched_ffmpeg-mt/libavformat/mov.c 2010-03-11 17:46:31 -0800
|
| ++++ ffmpeg-mt/libavformat/mov.c 2010-03-11 19:08:40 -0800
|
| +@@ -312,6 +312,8 @@ static int mov_read_dref(MOVContext *c,
|
| + MOVDref *dref = &sc->drefs[i];
|
| + uint32_t size = get_be32(pb);
|
| + int64_t next = url_ftell(pb) + size - 4;
|
| ++ if (size < 8)
|
| ++ return -1;
|
| +
|
| + dref->type = get_le32(pb);
|
| + get_be32(pb); // version + flags
|
| +Only in ffmpeg-mt/libavformat: mov.c~
|
| +diff -rpu unpatched_ffmpeg-mt/libavformat/oggdec.c ffmpeg-mt/libavformat/oggdec.c
|
| +--- unpatched_ffmpeg-mt/libavformat/oggdec.c 2010-03-11 17:46:31 -0800
|
| ++++ ffmpeg-mt/libavformat/oggdec.c 2010-03-11 19:12:33 -0800
|
| +@@ -38,13 +38,23 @@
|
| #define DECODER_BUFFER_SIZE MAX_PAGE_SIZE
|
| -
|
| +
|
| static const struct ogg_codec * const ogg_codecs[] = {
|
| +#if CONFIG_DIRAC_DEMUXER
|
| &ff_dirac_codec,
|
| +#endif
|
| - #if CONFIG_LIBSPEEX
|
| ++#if CONFIG_LIBSPEEX
|
| &ff_speex_codec,
|
| - #endif
|
| -@@ -47,7 +49,9 @@
|
| - #if CONFIG_FLAC_DECODER
|
| ++#endif
|
| + &ff_vorbis_codec,
|
| + &ff_theora_codec,
|
| ++#if CONFIG_FLAC_DECODER
|
| &ff_flac_codec,
|
| - #endif
|
| ++#endif
|
| +#if CONFIG_DIRAC_DEMUXER
|
| &ff_old_dirac_codec,
|
| +#endif
|
| - #if CONFIG_FLAC_DECODER
|
| ++#if CONFIG_FLAC_DECODER
|
| &ff_old_flac_codec,
|
| - #endif
|
| -
|
| -
|
| ++#endif
|
| + &ff_ogm_video_codec,
|
| + &ff_ogm_audio_codec,
|
| + &ff_ogm_text_codec,
|
|
|