[FFmpeg-cvslog] r18652 - in trunk/libavformat: Makefile allformats.c raw.c

ramiro subversion
Wed Apr 22 01:23:15 CEST 2009


Author: ramiro
Date: Wed Apr 22 01:23:15 2009
New Revision: 18652

Log:
Add raw MLP muxer.

Modified:
   trunk/libavformat/Makefile
   trunk/libavformat/allformats.c
   trunk/libavformat/raw.c

Modified: trunk/libavformat/Makefile
==============================================================================
--- trunk/libavformat/Makefile	Wed Apr 22 00:53:46 2009	(r18651)
+++ trunk/libavformat/Makefile	Wed Apr 22 01:23:15 2009	(r18652)
@@ -89,6 +89,7 @@ OBJS-$(CONFIG_MATROSKA_MUXER)           
 OBJS-$(CONFIG_MJPEG_DEMUXER)             += raw.o
 OBJS-$(CONFIG_MJPEG_MUXER)               += raw.o
 OBJS-$(CONFIG_MLP_DEMUXER)               += raw.o id3v2.o
+OBJS-$(CONFIG_MLP_MUXER)                 += raw.o
 OBJS-$(CONFIG_MM_DEMUXER)                += mm.o
 OBJS-$(CONFIG_MMF_DEMUXER)               += mmf.o raw.o
 OBJS-$(CONFIG_MMF_MUXER)                 += mmf.o riff.o

Modified: trunk/libavformat/allformats.c
==============================================================================
--- trunk/libavformat/allformats.c	Wed Apr 22 00:53:46 2009	(r18651)
+++ trunk/libavformat/allformats.c	Wed Apr 22 01:23:15 2009	(r18652)
@@ -102,7 +102,7 @@ void av_register_all(void)
     REGISTER_MUXDEMUX (MATROSKA, matroska);
     REGISTER_MUXER    (MATROSKA_AUDIO, matroska_audio);
     REGISTER_MUXDEMUX (MJPEG, mjpeg);
-    REGISTER_DEMUXER  (MLP, mlp);
+    REGISTER_MUXDEMUX (MLP, mlp);
     REGISTER_DEMUXER  (MM, mm);
     REGISTER_MUXDEMUX (MMF, mmf);
     REGISTER_MUXDEMUX (MOV, mov);

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Wed Apr 22 00:53:46 2009	(r18651)
+++ trunk/libavformat/raw.c	Wed Apr 22 01:23:15 2009	(r18652)
@@ -973,6 +973,21 @@ AVInputFormat mlp_demuxer = {
 };
 #endif
 
+#ifdef CONFIG_MLP_MUXER
+AVOutputFormat mlp_muxer = {
+    "mlp",
+    NULL_IF_CONFIG_SMALL("raw MLP"),
+    NULL,
+    "mlp",
+    0,
+    CODEC_ID_MLP,
+    CODEC_ID_NONE,
+    NULL,
+    raw_write_packet,
+    .flags= AVFMT_NOTIMESTAMPS,
+};
+#endif
+
 #if CONFIG_TRUEHD_DEMUXER
 AVInputFormat truehd_demuxer = {
     "truehd",



More information about the ffmpeg-cvslog mailing list