pjmedia_rtp_encode_rtp() timestamp update

BC
b17 c0de
Sat, Aug 27, 2016 9:49 PM

Hi,
Why does pjmedia_rtp_encode_rtp() update the RTP header timestamp with
ts_len inline? Shouldn't the RTP timestamp be of the start of the
frame? RFC 3550 says:

The timestamp reflects the sampling instant of the first octet in the
RTP data packet.

So don't you want to update the RTP session timestamp with ts_len only
after the packet is sent?

Is there something I'm missing here?

Kal

Hi, Why does pjmedia_rtp_encode_rtp() update the RTP header timestamp with ts_len inline? Shouldn't the RTP timestamp be of the start of the frame? RFC 3550 says: The timestamp reflects the sampling instant of the first octet in the RTP data packet. So don't you want to update the RTP session timestamp with ts_len only after the packet is sent? Is there something I'm missing here? Kal