]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp: Preserve timestamps on video frames. 97/3897/2
authorJoshua Colp <jcolp@digium.com>
Wed, 14 Sep 2016 12:59:51 +0000 (08:59 -0400)
committerJoshua Colp <jcolp@digium.com>
Wed, 14 Sep 2016 17:57:45 +0000 (13:57 -0400)
commit34e82d16b4f1856a1d92fd9e75597f23d678763b
tree2205417a07aa43f44409aa4a26990ab89d253ee7
parentd6c9e72c93fdb0d28830dbcd8408891f19553699
rtp: Preserve timestamps on video frames.

Currently when receiving video over RTP we store only
a calculated samples on the frame. When starting the video
it can take some time for this calculation to actually yield
a value as it requires constant changing timestamps. As well
if a video frame passes over multiple RTP packets this calculation
will fail as the timestamp is the same as the previous RTP
packet and the number of samples calculated will be 0.

This change preserves the timestamp on the frame and allows
it to pass through the core. When sending the video this timestamp
is used instead of a new one being calculated.

ASTERISK-26367 #close

Change-Id: Iba8179fb5c14c9443aee4baf670d2185da3ecfbd
main/codec_builtin.c
res/res_rtp_asterisk.c