system_wrappers/source/rtp_to_ntp_estimator.cc
// Detects if there has been a wraparound between |old_timestamp| and
// |new_timestamp|, and compensates by adding 2^32 if that is the case.
Detects if there has been a wraparound between |old_timestamp| and
|new_timestamp|, and compensates by adding 2^32 if that is the case.
Detects if there has been a wraparound between |old_timestamp| and |new_timestamp| and compensates by adding 2^32 if that is the case .
bool CompensateForWrapAround(uint32_t new_timestamp,
                             uint32_t old_timestamp,
                             int64_t* compensated_timestamp) {
  int64_t wraps = CheckForWrapArounds(new_timestamp, old_timestamp);
  if (wraps < 0) {
    return false;
  }
  *compensated_timestamp = new_timestamp + (wraps << 32);
  return true;
}
bool CompensateForWrapAround ( uint32_t new_timestamp , uint32_t old_timestamp , int64_t * compensated_timestamp ) { int64_t wraps = CheckForWrapArounds ( new_timestamp , old_timestamp ) ; if ( wraps < 0 ) { return false ; } * compensated_timestamp = new_timestamp + ( wraps << 32 ) ; return true ; }
Detects if there has been a wraparound between |old_timestamp| and
|new_timestamp|, and compensates by adding 2^32 if that is the case.
Detects if there has been a wraparound between |old_timestamp| and |new_timestamp| and compensates by adding 2^32 if that is the case .
// Reordering, don't use this packet.