Depends on the experimental DCA encoder.

MvH
Benjamin Larsson
>From 0c70944526bfa9b9203f61f170f9d7bdacfac850 Mon Sep 17 00:00:00 2001
From: Benjamin Larsson <[email protected]>
Date: Sat, 9 Apr 2011 01:27:17 +0200
Subject: [PATCH] Add raw DCA muxer for the experimental DCA encoder

---
 libavformat/allformats.c |    1 +
 libavformat/rawenc.c     |   16 ++++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 9398d34..55194d9 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -76,6 +76,7 @@ void av_register_all(void)
     REGISTER_DEMUXER  (CDG, cdg);
     REGISTER_MUXER    (CRC, crc);
     REGISTER_MUXDEMUX (DAUD, daud);
+    REGISTER_MUXER    (DCA, dca);
     REGISTER_DEMUXER  (DFA, dfa);
     REGISTER_MUXDEMUX (DIRAC, dirac);
     REGISTER_MUXDEMUX (DNXHD, dnxhd);
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index 00e43df..8e53b8f 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -298,3 +298,19 @@ AVOutputFormat ff_rawvideo_muxer = {
     .flags= AVFMT_NOTIMESTAMPS,
 };
 #endif
+
+#if CONFIG_DCA_MUXER
+AVOutputFormat ff_dca_muxer = {
+    "dca",
+    NULL_IF_CONFIG_SMALL("raw DTS Coherent Acoustics"),
+    NULL,
+    "dca",
+    0,
+    CODEC_ID_DTS,
+    CODEC_ID_NONE,
+    NULL,
+    ff_raw_write_packet,
+    .flags= AVFMT_NOTIMESTAMPS,
+};
+#endif
+
-- 
1.7.0.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to