From 12348ca25e0bf44bf4530745753e938fc54e7ae3 Mon Sep 17 00:00:00 2001 From: John Brooks Date: Thu, 17 Nov 2011 08:50:12 -0700 Subject: rtpdec: unwrap RTP timestamps for PTS calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timestamp field in RTPDemuxContext was unused before this. Signed-off-by: Martin Storsjö --- libavformat/rtspdec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/rtspdec.c') diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index c453b82..1b4982f 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -52,6 +52,8 @@ static int rtsp_read_play(AVFormatContext *s) rtpctx->last_rtcp_ntp_time = AV_NOPTS_VALUE; rtpctx->first_rtcp_ntp_time = AV_NOPTS_VALUE; rtpctx->base_timestamp = 0; + rtpctx->timestamp = 0; + rtpctx->unwrapped_timestamp = 0; rtpctx->rtcp_ts_offset = 0; } } -- cgit v1.1