[vlc-devel] [PATCH 1/9] packetizer: dts: set DTS_HD profile

Thomas Guillem thomas at gllm.fr
Wed Dec 20 14:12:37 CET 2017


Only basic set of profile: DTS or DTS_HD, we don't really care about
differentiating HD form HD-MA or others for now.
---
 modules/packetizer/dts.c        | 1 +
 modules/packetizer/dts_header.h | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/modules/packetizer/dts.c b/modules/packetizer/dts.c
index ed8acd1d41..c1a570c45b 100644
--- a/modules/packetizer/dts.c
+++ b/modules/packetizer/dts.c
@@ -276,6 +276,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
                                               VLC_DTS_HEADER_SIZE )
                         == VLC_SUCCESS && next_header.b_substream )
                     {
+                        p_dec->fmt_out.i_profile = PROFILE_DTS_HD;
                         p_sys->i_input_size += next_header.i_frame_size;
                     }
                 }
diff --git a/modules/packetizer/dts_header.h b/modules/packetizer/dts_header.h
index 9be4924a37..6787161cd9 100644
--- a/modules/packetizer/dts_header.h
+++ b/modules/packetizer/dts_header.h
@@ -24,6 +24,10 @@
 
 #define VLC_DTS_HEADER_SIZE 14
 
+#define PROFILE_DTS_INVALID -1
+#define PROFILE_DTS 0
+#define PROFILE_DTS_HD 1
+
 typedef struct
 {
     bool            b_substream;
-- 
2.11.0



More information about the vlc-devel mailing list