Commit 3e77116c authored by Marian Durkovic's avatar Marian Durkovic

fixed comparision between incompatible values preventing detection of PCR gaps

parent 328f2bb3
......@@ -272,9 +272,10 @@ void input_ClockSetPCR( input_thread_t *p_input,
}
else
{
mtime_t clock_max_gap = CR_MAX_GAP * 90 / p_input->i_rate;
if ( cl->last_cr != 0 &&
( (cl->last_cr - i_clock) > CR_MAX_GAP
|| (cl->last_cr - i_clock) < - CR_MAX_GAP ) )
( (cl->last_cr - i_clock) > clock_max_gap
|| (cl->last_cr - i_clock) < - clock_max_gap ) )
{
/* Stream discontinuity, for which we haven't received a
* warning from the stream control facilities (dd-edited
......
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