From 63d864434d82cd43f3a91d1f3398043afad04ab4 Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Sun, 20 Apr 2008 20:28:12 +0000 Subject: [PATCH] Raw dts muxer Originally committed as revision 12912 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/allformats.c | 2 +- libavformat/raw.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 149d6df0a9..9e47a6f7b4 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -70,7 +70,7 @@ void av_register_all(void) 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); diff --git a/libavformat/raw.c b/libavformat/raw.c index d4b1389537..c860b7f54e 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -513,6 +513,20 @@ AVOutputFormat ac3_muxer = { 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 = {