Commit 0e420aff authored by Laurent Aimar's avatar Laurent Aimar

Fixed timestamp validity check in decoder (probably close #2502)

parent 9e09dba8
......@@ -1060,7 +1060,8 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
*pi_ts0 += i_es_delay;
if( pi_ts1 && *pi_ts1 > 0 )
*pi_ts1 += i_es_delay;
input_clock_ConvertTS( p_clock, &i_rate, pi_ts0, pi_ts1, i_ts_bound );
if( input_clock_ConvertTS( p_clock, &i_rate, pi_ts0, pi_ts1, i_ts_bound ) )
*pi_ts0 = 0;
}
else
{
......
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