[vlc-devel] [PATCH 02/13] packetizer: dts: set DTSHD fourcc if input has substreams
Thomas Guillem
thomas at gllm.fr
Tue Dec 19 12:38:33 CET 2017
---
modules/packetizer/dts.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/packetizer/dts.c b/modules/packetizer/dts.c
index ed8acd1d41..12aaddb6ec 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_codec = VLC_CODEC_DTSHD;
p_sys->i_input_size += next_header.i_frame_size;
}
}
@@ -341,7 +342,8 @@ static int Open( vlc_object_t *p_this )
decoder_t *p_dec = (decoder_t*)p_this;
decoder_sys_t *p_sys;
- if( p_dec->fmt_in.i_codec != VLC_CODEC_DTS )
+ if( p_dec->fmt_in.i_codec != VLC_CODEC_DTS
+ && p_dec->fmt_in.i_codec != VLC_CODEC_DTSHD )
return VLC_EGENERIC;
/* Allocate the memory needed to store the decoder's structure */
--
2.11.0
More information about the vlc-devel
mailing list