Commit 6bd81eee authored by Christophe Massiot's avatar Christophe Massiot

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

  invalid.
parent 024fa1c4
......@@ -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;
......
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