Commit 9f8f2982 authored by Rafaël Carré's avatar Rafaël Carré

sout_display: use VLC_TS_INVALID (refs #3135)

parent 8bb130f3
......@@ -206,13 +206,13 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
if( id->p_dec && p_buffer->i_buffer > 0 )
{
if( p_buffer->i_dts <= 0 )
p_buffer->i_dts= 0;
if( p_buffer->i_dts <= VLC_TS_INVALID )
p_buffer->i_dts = 0;
else
p_buffer->i_dts += p_sys->i_delay;
if( p_buffer->i_pts <= 0 )
p_buffer->i_pts= 0;
if( p_buffer->i_pts <= VLC_TS_INVALID )
p_buffer->i_pts = 0;
else
p_buffer->i_pts += p_sys->i_delay;
......
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