[FFmpeg-soc] [soc]: r2268 - mlp/libavformat.diff
ramiro
subversion at mplayerhq.hu
Fri May 30 16:13:12 CEST 2008
Author: ramiro
Date: Fri May 30 16:13:12 2008
New Revision: 2268
Log:
raw mlp demuxer
Based on patch by Jeff Muizelaar <jrmuizel <at> gmail.org>
http://article.gmane.org/gmane.comp.video.ffmpeg.devel/57797
Added:
mlp/libavformat.diff
Added: mlp/libavformat.diff
==============================================================================
--- (empty file)
+++ mlp/libavformat.diff Fri May 30 16:13:12 2008
@@ -0,0 +1,48 @@
+Index: libavformat/Makefile
+===================================================================
+--- libavformat/Makefile (revision 13535)
++++ libavformat/Makefile (working copy)
+@@ -79,6 +79,7 @@
+ OBJS-$(CONFIG_MATROSKA_DEMUXER) += matroskadec.o matroska.o riff.o
+ OBJS-$(CONFIG_MATROSKA_MUXER) += matroskaenc.o matroska.o riff.o avc.o
+ OBJS-$(CONFIG_MJPEG_DEMUXER) += raw.o
++OBJS-$(CONFIG_MLP_DEMUXER) += raw.o
+ OBJS-$(CONFIG_MJPEG_MUXER) += raw.o
+ OBJS-$(CONFIG_MM_DEMUXER) += mm.o
+ OBJS-$(CONFIG_MMF_DEMUXER) += mmf.o raw.o
+Index: libavformat/raw.c
+===================================================================
+--- libavformat/raw.c (revision 13535)
++++ libavformat/raw.c (working copy)
+@@ -442,6 +442,19 @@
+ .value = CODEC_ID_SHORTEN,
+ };
+
++AVInputFormat mlp_demuxer = {
++ "mlp",
++ "raw mlp",
++ 0,
++ NULL,
++ audio_read_header,
++ raw_read_partial_packet,
++ raw_read_close,
++ .flags= AVFMT_GENERIC_INDEX,
++ .extensions = "mlp",
++ .value = CODEC_ID_MLP,
++};
++
+ AVInputFormat flac_demuxer = {
+ "flac",
+ "raw flac",
+Index: libavformat/allformats.c
+===================================================================
+--- libavformat/allformats.c (revision 13535)
++++ libavformat/allformats.c (working copy)
+@@ -100,6 +100,7 @@
+ REGISTER_MUXDEMUX (MATROSKA, matroska);
+ REGISTER_MUXER (MATROSKA_AUDIO, matroska_audio);
+ REGISTER_MUXDEMUX (MJPEG, mjpeg);
++ REGISTER_DEMUXER (MLP, mlp);
+ REGISTER_DEMUXER (MM, mm);
+ REGISTER_MUXDEMUX (MMF, mmf);
+ REGISTER_MUXDEMUX (MOV, mov);
More information about the FFmpeg-soc
mailing list