]> git.sesse.net Git - vlc/commitdiff
TS: put EAC3 in TS muxer
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 21 Sep 2009 20:09:46 +0000 (22:09 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 21 Sep 2009 20:25:01 +0000 (22:25 +0200)
This should be useful to record TNT HD streams
Thanks to Thannoy and Laurent

modules/mux/mpeg/ts.c

index 032d7eb658bc7de977c262a8df59b1074625eb6e..9bf90346925132ebad87b1293a11fc7eb0e6ed66 100644 (file)
@@ -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 )