[vlc-commits] packetizer: dts: set DTS_HD profile
Thomas Guillem
git at videolan.org
Thu Dec 21 10:53:04 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 20 14:03:37 2017 +0100| [e1db978ab929a43bf4bda61f217b911efd81b790] | committer: Jean-Baptiste Kempf
packetizer: dts: set DTS_HD profile
Only basic set of profile: DTS or DTS_HD, we don't really care about
differentiating HD form HD-MA or others for now.
(cherry picked from commit 02298c84c4eef4cff972b3589fbcefeef7ceb4db)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e1db978ab929a43bf4bda61f217b911efd81b790
---
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;
More information about the vlc-commits
mailing list