<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    In the EsOutControlLocked funtion in src/input/es_out.c there is a
    check to see if the pts delay is greater than a configured clock
    jitter amount:<br>
    <br>
    <tt>const mtime_t i_jitter_max = INT64_C(1000) * var_InheritInteger(
      p_sys->p_input, "clock-jitter" );</tt><tt><br>
    </tt><tt>if( i_pts_delay > __MIN( i_pts_delay_base +
      i_jitter_max, INPUT_PTS_DELAY_MAX ) )</tt><tt><br>
    </tt><tt>{</tt><tt><br>
    </tt><tt>    msg_Err( p_sys->p_input,</tt><tt><br>
    </tt><tt>             "ES_OUT_SET_(GROUP_)PCR  is called too late
      (jitter of %d ms ignored)",</tt><tt><br>
    </tt><tt>             (int)(i_pts_delay - i_pts_delay_base) / 1000
      );</tt><tt><br>
    </tt><tt>    i_pts_delay = p_sys->i_pts_delay;</tt><tt><br>
    </tt><tt><br>
    </tt><tt>     /* reset clock */</tt><tt><br>
    </tt><tt>    for( int i = 0; i < p_sys->i_pgrm; i++ )</tt><tt><br>
    </tt><tt>      input_clock_Reset( p_sys->pgrm[i]->p_clock );</tt><tt><br>
    </tt><tt>}</tt><tt><br>
    </tt><tt>else</tt><tt><br>
    </tt><tt>{</tt><tt><br>
    </tt><tt>    msg_Err( p_sys->p_input,</tt><tt><br>
    </tt><tt>             "ES_OUT_SET_(GROUP_)PCR  is called too late
      (pts_delay increased to %d ms)",</tt><tt><br>
    </tt><tt>              (int)(i_pts_delay/1000) );</tt><tt><br>
    </tt><tt><br>
    </tt><tt>   /* Force a rebufferization when we are too late */</tt><tt><br>
    </tt><tt><br>
    </tt><tt>   /* It is not really good, as we throw away already
      buffered data</tt><tt><br>
    </tt><tt>    * TODO have a mean to correctly reenter bufferization
      */</tt><tt><br>
    </tt><tt>   es_out_Control( out, ES_OUT_RESET_PCR );</tt><tt><br>
    </tt><tt>}</tt><tt><br>
    </tt><br>
    I may be confused, but should the conditional be reversed? Should
    the jitter be ignored if the i_pts_delay is less than __MIN(
    i_pts_delay_base + i_jitter_max, INPUT_PTS_DELAY_MAX ) rather than
    greater than?<br>
    David<br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <img moz-do-not-send="false"
        src="cid:part1.06030004.08090903@openroadsconsulting.com">
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">----------------------------------------------------------------------------</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red;"
          lang="EN-GB">David R Robison</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;"
            lang="EN-GB">Principal Systems Engineer</span></b></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;"
          lang="EN-GB">+1 757 546 3401 (o)</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
          style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;
          \" lang="EN-GB">+1 757 286 0022 (m)</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;t"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";"
          lang="EN-GB"><a
            href="mailto:david.robison@openroadsconsulting.com">david.robison@openroadsconsulting.com</a></span></p>
      <p
        style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;><a
        href="http://www.openroadsconsulting.com/"><span
        lang=EN-GB style="
        font-size:10.0pt;font-family:"arial","sans-serif";'=""><a class="moz-txt-link-abbreviated" href="http://www.openroadsconsulting.com">www.openroadsconsulting.com</a></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">----------------------------------------------------------------------------</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red;"
          lang="EN-GB">Open Roads Consulting </span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red;"
          lang="EN-GB">A Q-Free Company</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;"
          lang="EN-GB">103 Watson Rd. Chesapeake VA 23320</span></p>
    </div>
  <BR />
<BR />
<HR />
This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.<BR />
If you are not the intended recipient, please delete this email immediately.<BR />
</body>
</html>