[vlc-devel] commit: TS: put EAC3 in TS muxer (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Sep 22 14:46:17 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 21 22:09:46 2009 +0200| [978bebf65c6098acfb5aee9982f81c6270517852] | committer: Jean-Baptiste Kempf 

TS: put EAC3 in TS muxer

This should be useful to record TNT HD streams
Thanks to Thannoy and Laurent

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=978bebf65c6098acfb5aee9982f81c6270517852
---

 modules/mux/mpeg/ts.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 032d7eb..9bf9034 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 )




More information about the vlc-devel mailing list