[vlc-commits] demux: mp4: map DTS-HD profile
Francois Cartegnie
git at videolan.org
Thu Dec 21 10:53:13 CET 2017
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 20 19:52:47 2017 +0100| [d44d00d4e139cf1e711252fc81ab8a5a1dab2a23] | committer: Jean-Baptiste Kempf
demux: mp4: map DTS-HD profile
(cherry picked from commit 5ca1ca1cb6c1e98a206df3463383d1e1ebcb41a3)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d44d00d4e139cf1e711252fc81ab8a5a1dab2a23
---
modules/demux/mp4/essetup.c | 8 ++++++++
modules/demux/mp4/libmp4.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 33c0249c7d..2f1b001284 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1001,6 +1001,14 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
break;
}
+ case ATOM_dtse: /* DTS‐HD Lossless formats */
+ case ATOM_dtsh: /* DTS‐HD audio formats */
+ case ATOM_dtsl: /* DTS‐HD Lossless formats */
+ {
+ p_track->fmt.i_profile = PROFILE_DTS_HD;
+ break;
+ }
+
case( VLC_FOURCC( 'r', 'a', 'w', ' ' ) ):
case( VLC_FOURCC( 'N', 'O', 'N', 'E' ) ):
{
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index b0c46cf8a6..40ea649f00 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -180,6 +180,13 @@ typedef int64_t stime_t;
#define ATOM_eac3 VLC_FOURCC( 'e', 'c', '-', '3' )
#define ATOM_dac3 VLC_FOURCC( 'd', 'a', 'c', '3' )
#define ATOM_dec3 VLC_FOURCC( 'd', 'e', 'c', '3' )
+#define ATOM_ddts VLC_FOURCC( 'd', 'd', 't', 's' ) /* DTS formats */
+#define ATOM_dtsc VLC_FOURCC( 'd', 't', 's', 'c' )
+#define ATOM_dtsh VLC_FOURCC( 'd', 't', 's', 'h' )
+#define ATOM_dtsl VLC_FOURCC( 'd', 't', 's', 'l' )
+#define ATOM_dtse VLC_FOURCC( 'd', 't', 's', 'e' )
+#define ATOM_dtsm VLC_FOURCC( 'd', 't', 's', '-' )
+#define ATOM_dtsp VLC_FOURCC( 'd', 't', 's', '+' )
#define ATOM_vc1 VLC_FOURCC( 'v', 'c', '-', '1' )
#define ATOM_dvc1 VLC_FOURCC( 'd', 'v', 'c', '1' )
#define ATOM_WMA2 VLC_FOURCC( 'W', 'M', 'A', '2' )
More information about the vlc-commits
mailing list