[vlc-devel] commit: live555: support for subtitle tracks (Pierre Ynard )

git version control git at videolan.org
Mon Sep 28 12:05:09 CEST 2009


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Sep 28 12:03:32 2009 +0200| [b045fd3dea3cedf806b66c05149c795dc71a383b] | committer: Pierre Ynard 

live555: support for subtitle tracks

T.140 support will be included in the next release of live555

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

 modules/demux/live555.cpp |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 1b35afa..1183606 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -694,6 +694,8 @@ static int SessionsSetup( demux_t *p_demux )
             i_buffer = 100000;
         else if( !strcmp( sub->mediumName(), "video" ) )
             i_buffer = 2000000;
+        else if( !strcmp( sub->mediumName(), "text" ) )
+            ;
         else continue;
 
         if( i_client_port != -1 )
@@ -1003,6 +1005,15 @@ static int SessionsSetup( demux_t *p_demux )
                                                        p_demux->out );
                 }
             }
+            else if( !strcmp( sub->mediumName(), "text" ) )
+            {
+                es_format_Init( &tk->fmt, SPU_ES, VLC_FOURCC('u','n','d','f') );
+
+                if( !strcmp( sub->codecName(), "T140" ) )
+                {
+                    tk->fmt.i_codec = VLC_CODEC_ITU_T140;
+                }
+            }
 
             if( !tk->b_quicktime && !tk->b_muxed && !tk->b_asf )
             {




More information about the vlc-devel mailing list