- /* Update NPT */
- //msg_Dbg( p_demux, "current %d, start_seq %u", (int)tk->sub->rtpSource()->curPacketRTPSeqNum(), tk->i_start_seq );
- if( (tk->fmt.i_cat == VIDEO_ES) && (p_sys->i_pcr < i_pts) &&
- (i_pts > 0) && (p_sys->i_pcr > 0) )
- {
- p_sys->i_npt += __MAX( 0, i_pts - p_sys->i_pcr );
- p_sys->i_pcr = i_pts;
- //msg_Dbg( p_demux, "npt update" );
- }
- else if( /*tk->fmt.i_cat == VIDEO_ES &&*/ p_sys->i_pcr < i_pts )