diff options
author | John Brooks <john.brooks@bluecherry.net> | 2011-11-17 08:50:12 -0700 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-18 10:31:17 +0200 |
commit | 12348ca25e0bf44bf4530745753e938fc54e7ae3 (patch) | |
tree | 44fb1debd9ac2de9a91f8b052197bfa509866b61 /libavformat/rtspdec.c | |
parent | bb4b0ad83b13c3af57675e80163f3f333adef96f (diff) | |
download | ffmpeg-12348ca25e0bf44bf4530745753e938fc54e7ae3.tar.gz |
rtpdec: unwrap RTP timestamps for PTS calculation
The timestamp field in RTPDemuxContext was unused before this.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r-- | libavformat/rtspdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index c453b82195..1b4982f212 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; } } |