From 978bebf65c6098acfb5aee9982f81c6270517852 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Mon, 21 Sep 2009 22:09:46 +0200 Subject: [PATCH] TS: put EAC3 in TS muxer This should be useful to record TNT HD streams Thanks to Thannoy and Laurent --- modules/mux/mpeg/ts.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c index 032d7eb658..9bf9034692 100644 --- a/modules/mux/mpeg/ts.c +++ b/modules/mux/mpeg/ts.c @@ -1054,6 +1054,10 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) p_stream->i_stream_type = 0x81; p_stream->i_stream_id = 0xbd; break; + case VLC_CODEC_EAC3: + p_stream->i_stream_type = 0x06; + p_stream->i_stream_id = 0xbd; + break; case VLC_CODEC_DVD_LPCM: p_stream->i_stream_type = 0x83; p_stream->i_stream_id = 0xbd; @@ -2697,6 +2701,11 @@ static void GetPMT( sout_mux_t *p_mux, sout_buffer_chain_t *c ) uint8_t data[4] = { 0x44, 0x54, 0x53, 0x32 }; dvbpsi_PMTESAddDescriptor( p_es, 0x05, 4, data ); } + else if( p_stream->i_codec == VLC_CODEC_EAC3 ) + { + uint8_t data[1] = { 0x00 }; + dvbpsi_PMTESAddDescriptor( p_es, 0x7a, 1, data ); + } else if( p_stream->i_codec == VLC_CODEC_TELETEXT ) { if( p_stream->i_decoder_specific_info ) -- 2.11.4.GIT