1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00

* src/input/es_out.c: EN 300 472 allows the PTS of teletext streams to be

invalid.
This commit is contained in:
Christophe Massiot 2005-01-13 19:01:22 +00:00
parent 024fa1c483
commit 6bd81eee79

View File

@ -754,6 +754,17 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
p_block->i_pts =
input_ClockGetTS( p_input, &p_pgrm->clock,
( p_block->i_pts + 11 ) * 9 / 100 ) + i_delay;
if ( es->fmt.i_codec == VLC_FOURCC( 't', 'e', 'l', 'x' ) )
{
mtime_t current_date = mdate();
if( p_block->i_pts > current_date + 10000000
|| current_date > p_block->i_pts )
{
/* ETSI EN 300 472 Annex A : do not take into account the PTS
* for teletext streams. */
p_block->i_pts = current_date + p_input->i_pts_delay + i_delay;
}
}
}
p_block->i_rate = p_input->i_rate;