[FFmpeg-devel] [PATCH] Calculate RTCP SR timestamps from packet timestamps

Martin Storsjö martin
Sun Mar 28 12:12:02 CEST 2010


Hi,

Currently, the timestamps for RTCP sender reports are calculated based on 
the system realtime clock. Since the start time for the RTP muxer can be 
set through the start_time_realtime field, this may be slightly (or quite 
much if the user explicitly wants that) different from the actual current 
time. This leads to sending RTCP SR packets where the RTP timestamp is way 
off from the RTP packets at the same time.

This patch changes this to calculate the timestamp to use for RTCP packets 
based on the actual RTP packet timestamps instead. This way, the sender 
reports correspond to the actual surrounding RTP packets. This also lets 
the user set a completely fictional start_time_realtime, if he wants to.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtpenc-calc-ntp.patch
Type: text/x-diff
Size: 1265 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100328/4d06ba42/attachment.patch>



More information about the ffmpeg-devel mailing list