Raw dts muxer
authorBenjamin Larsson <banan@ludd.ltu.se>
Sun, 20 Apr 2008 20:28:12 +0000 (20:28 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Sun, 20 Apr 2008 20:28:12 +0000 (20:28 +0000)
Originally committed as revision 12912 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/allformats.c
libavformat/raw.c

index 149d6df..9e47a6f 100644 (file)
@@ -70,7 +70,7 @@ void av_register_all(void)
     REGISTER_MUXER    (CRC, crc);
     REGISTER_DEMUXER  (DAUD, daud);
     REGISTER_DEMUXER  (DSICIN, dsicin);
     REGISTER_MUXER    (CRC, crc);
     REGISTER_DEMUXER  (DAUD, daud);
     REGISTER_DEMUXER  (DSICIN, dsicin);
-    REGISTER_DEMUXER  (DTS, dts);
+    REGISTER_MUXDEMUX (DTS, dts);
     REGISTER_MUXDEMUX (DV, dv);
     REGISTER_DEMUXER  (DXA, dxa);
     REGISTER_DEMUXER  (EA, ea);
     REGISTER_MUXDEMUX (DV, dv);
     REGISTER_DEMUXER  (DXA, dxa);
     REGISTER_DEMUXER  (EA, ea);
index d4b1389..c860b7f 100644 (file)
@@ -513,6 +513,20 @@ AVOutputFormat ac3_muxer = {
     raw_write_packet,
     .flags= AVFMT_NOTIMESTAMPS,
 };
     raw_write_packet,
     .flags= AVFMT_NOTIMESTAMPS,
 };
+
+AVOutputFormat dts_muxer = {
+    "dts",
+    "raw dts",
+    "audio/x-dca",
+    "dts",
+    0,
+    CODEC_ID_DTS,
+    0,
+    NULL,
+    raw_write_packet,
+    .flags= AVFMT_NOTIMESTAMPS,
+};
+
 #endif //CONFIG_MUXERS
 
 AVInputFormat dts_demuxer = {
 #endif //CONFIG_MUXERS
 
 AVInputFormat dts_demuxer = {