diff options
author | Martin Storsjö <martin@martin.st> | 2014-10-22 12:40:46 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-10-24 09:53:45 +0300 |
commit | 6df9d9b55d3f56ee7782639a7678eeeaf77f14ea (patch) | |
tree | 03a66a094e1c9803a25bbd244adcd7c01269655d /libavformat/rtspdec.c | |
parent | d0c093021943e9b9c23528b12cd61ca2a5b01b4f (diff) | |
download | ffmpeg-6df9d9b55d3f56ee7782639a7678eeeaf77f14ea.tar.gz |
lavf: Use av_gettime_relative
The ones left using av_gettime are NTP timestamps (for RTCP,
which is specified to send the actual current realtime clock
in RTCP SR packets), and the NUT muxer timestamper, which is
documented as using wallclock time.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r-- | libavformat/rtspdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index aa016c3194..1f90590c89 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -885,7 +885,7 @@ retry: if (!(rt->rtsp_flags & RTSP_FLAG_LISTEN)) { /* send dummy request to keep TCP connection alive */ - if ((av_gettime() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2 || + if ((av_gettime_relative() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2 || rt->auth_state.stale) { if (rt->server_type == RTSP_SERVER_WMS || (rt->server_type != RTSP_SERVER_REAL && |