On receiver use the echo rtcp packet type to calculate RTT, on sender try the echo packet type, otherwise fallback to using RR for calculating the RTT. Refactored rtcp_send_sender and rtcp_send_receiver into multiple subfunctions.
VideoLAN code repository instance