Commit b045fd3d authored by Pierre Ynard's avatar Pierre Ynard

live555: support for subtitle tracks

T.140 support will be included in the next release of live555
parent da17ee33
...@@ -694,6 +694,8 @@ static int SessionsSetup( demux_t *p_demux ) ...@@ -694,6 +694,8 @@ static int SessionsSetup( demux_t *p_demux )
i_buffer = 100000; i_buffer = 100000;
else if( !strcmp( sub->mediumName(), "video" ) ) else if( !strcmp( sub->mediumName(), "video" ) )
i_buffer = 2000000; i_buffer = 2000000;
else if( !strcmp( sub->mediumName(), "text" ) )
;
else continue; else continue;
if( i_client_port != -1 ) if( i_client_port != -1 )
...@@ -1003,6 +1005,15 @@ static int SessionsSetup( demux_t *p_demux ) ...@@ -1003,6 +1005,15 @@ static int SessionsSetup( demux_t *p_demux )
p_demux->out ); 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 ) if( !tk->b_quicktime && !tk->b_muxed && !tk->b_asf )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment