[vlc-commits] mux: mp4: add missing mapping

Francois Cartegnie git at videolan.org
Mon May 4 23:11:31 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May  4 22:52:25 2015 +0200| [28b9f7c8d7ba7f0497fe3cbabc7a3ca0aa5b18a6] | committer: Francois Cartegnie

mux: mp4: add missing mapping

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28b9f7c8d7ba7f0497fe3cbabc7a3ca0aa5b18a6
---

 modules/mux/mp4.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 5204028..f366167 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -449,6 +449,7 @@ static int AddStream(sout_mux_t *p_mux, sout_input_t *p_input)
     switch(p_input->p_fmt->i_codec)
     {
     case VLC_CODEC_A52:
+    case VLC_CODEC_DTS:
     case VLC_CODEC_EAC3:
     case VLC_CODEC_MP4A:
     case VLC_CODEC_MP4V:
@@ -896,6 +897,9 @@ static bo_t *GetESDS(mp4_stream_t *p_stream)
         i_object_type_indication =
             p_stream->fmt.audio.i_rate < 32000 ? 0x69 : 0x6b;
         break;
+    case VLC_CODEC_DTS:
+        i_object_type_indication = 0xa9;
+        break;
     default:
         i_object_type_indication = 0x00;
         break;
@@ -1578,6 +1582,8 @@ static bo_t *GetSounBox(sout_mux_t *p_mux, mp4_stream_t *p_stream)
         memcpy(fcc, "ac-3", 4);
     } else if (codec == VLC_CODEC_EAC3) {
         memcpy(fcc, "ec-3", 4);
+    } else if (codec == VLC_CODEC_DTS) {
+        memcpy(fcc, "DTS ", 4);
     } else
         vlc_fourcc_to_char(codec, fcc);
 



More information about the vlc-commits mailing list