[FFmpeg-devel] [PATCH 1/2] avformat/rtsp: av_rescale -> av_rescale_q

lance.lmwang at gmail.com lance.lmwang at gmail.com
Fri Nov 13 16:30:01 EET 2020


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavformat/rtsp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 5ef2f23..d9832bb 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);
                     }
                 }
             }
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list