Mercurial > libavformat.hg
diff rtpdec.c @ 5967:c5a3e1951fc6 libavformat
Reset RTCP timestamps after seeking, add range start offset to the packets timestamps
If these aren't reset, the timestamps make a huge jump when the next RTCP
is received.
author | mstorsjo |
---|---|
date | Tue, 20 Apr 2010 07:38:52 +0000 |
parents | 9a86b49201bb |
children | 5708c6d4223d |
line wrap: on
line diff
--- a/rtpdec.c Tue Apr 20 07:34:28 2010 +0000 +++ b/rtpdec.c Tue Apr 20 07:38:52 2010 +0000 @@ -437,7 +437,7 @@ delta_timestamp = timestamp - s->last_rtcp_timestamp; /* convert to the PTS timebase */ addend = av_rescale(s->last_rtcp_ntp_time - s->first_rtcp_ntp_time, s->st->time_base.den, (uint64_t)s->st->time_base.num << 32); - pkt->pts = addend + delta_timestamp; + pkt->pts = s->range_start_offset + addend + delta_timestamp; } }