[FFmpeg-soc] [soc]: r658 - in matroska: matroskaenc.c mkv-muxer.diff

conrad subversion at mplayerhq.hu
Fri Aug 10 01:37:14 CEST 2007


Author: conrad
Date: Fri Aug 10 01:37:14 2007
New Revision: 658

Log:
Add mka muxer


Modified:
   matroska/matroskaenc.c
   matroska/mkv-muxer.diff

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Fri Aug 10 01:37:14 2007
@@ -689,3 +689,17 @@ AVOutputFormat matroska_muxer = {
     mkv_write_trailer,
     .codec_tag = (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0},
 };
+
+AVOutputFormat matroska_audio_muxer = {
+    "matroska",
+    "Matroska File Format",
+    "audio/x-matroska",
+    "mka",
+    sizeof(MatroskaMuxContext),
+    CODEC_ID_MP2,
+    CODEC_ID_NONE,
+    mkv_write_header,
+    mkv_write_packet,
+    mkv_write_trailer,
+    .codec_tag = (const AVCodecTag*[]){codec_wav_tags, 0},
+};

Modified: matroska/mkv-muxer.diff
==============================================================================
--- matroska/mkv-muxer.diff	(original)
+++ matroska/mkv-muxer.diff	Fri Aug 10 01:37:14 2007
@@ -1,5 +1,5 @@
 diff --git a/libavformat/Makefile b/libavformat/Makefile
-index 7c837ce..dacbe68 100644
+index 4263719..6ab86df 100644
 --- a/libavformat/Makefile
 +++ b/libavformat/Makefile
 @@ -72,6 +72,7 @@ OBJS-$(CONFIG_IPMOVIE_DEMUXER)           += ipmovie.o
@@ -11,27 +11,29 @@ index 7c837ce..dacbe68 100644
  OBJS-$(CONFIG_MJPEG_MUXER)               += raw.o
  OBJS-$(CONFIG_MM_DEMUXER)                += mm.o
 diff --git a/libavformat/allformats.c b/libavformat/allformats.c
-index 84ba067..0b4b4af 100644
+index 6c5f6de..7031370 100644
 --- a/libavformat/allformats.c
 +++ b/libavformat/allformats.c
-@@ -92,7 +92,7 @@ void av_register_all(void)
+@@ -92,7 +92,8 @@ void av_register_all(void)
      if (!ENABLE_NUT_DEMUXER) REGISTER_DEMUXER (LIBNUT, libnut);
      REGISTER_MUXER   (LIBNUT, libnut);
      REGISTER_MUXDEMUX(M4V, m4v);
 -    REGISTER_DEMUXER (MATROSKA, matroska);
 +    REGISTER_MUXDEMUX(MATROSKA, matroska);
++    REGISTER_MUXER   (MATROSKA, matroska_audio);
      REGISTER_MUXDEMUX(MJPEG, mjpeg);
      REGISTER_DEMUXER (MM, mm);
      REGISTER_MUXDEMUX(MMF, mmf);
 diff --git a/libavformat/allformats.h b/libavformat/allformats.h
-index 4c9a904..c1d4e6a 100644
+index fec5038..cc54856 100644
 --- a/libavformat/allformats.h
 +++ b/libavformat/allformats.h
-@@ -141,6 +141,7 @@ extern AVOutputFormat image_muxer;
+@@ -144,6 +144,8 @@ extern AVOutputFormat image_muxer;
  extern AVOutputFormat imagepipe_muxer;
  extern AVOutputFormat libnut_muxer;
  extern AVOutputFormat m4v_muxer;
 +extern AVOutputFormat matroska_muxer;
++extern AVOutputFormat matroska_audio_muxer;
  extern AVOutputFormat mjpeg_muxer;
  extern AVOutputFormat mmf_muxer;
  extern AVOutputFormat mov_muxer;



More information about the FFmpeg-soc mailing list