diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-10-30 20:37:51 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-11-14 09:09:28 +0800 |
commit | 5bb313e72328021ed11d4c1032c8dfde13a50a30 (patch) | |
tree | e170020a59cc1bc50e42adc9e5fe9215d21ab6c1 | |
parent | 0cccb5fb14ee98225cb771d0ef060e52e1a1a7f9 (diff) | |
download | ffmpeg-5bb313e72328021ed11d4c1032c8dfde13a50a30.tar.gz |
avformat/rtsp: av_rescale -> av_rescale_q
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 5ef2f23dc2..d9832bbf1f 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -2247,9 +2247,7 @@ redo: s->start_time_realtime = av_rescale (rtpctx->first_rtcp_ntp_time - (NTP_OFFSET << 32), 1000000, 1LL << 32); if (rtpctx->st) { s->start_time_realtime -= - av_rescale (rtpctx->rtcp_ts_offset, - (uint64_t) rtpctx->st->time_base.num * 1000000, - rtpctx->st->time_base.den); + av_rescale_q (rtpctx->rtcp_ts_offset, rtpctx->st->time_base, AV_TIME_BASE_Q); } } } |