mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
rtpjitterbuffer: fix scaling from RTP-time to NTP-time
The scaling was inverse.
This commit is contained in:
parent
a245e85fb1
commit
755dba4561
1 changed files with 4 additions and 4 deletions
|
@ -899,12 +899,12 @@ rtp_jitter_buffer_calculate_pts (RTPJitterBuffer * jbuf, GstClockTime dts,
|
|||
|
||||
if (ntprtptime > rtptime_tmp)
|
||||
ntptime -=
|
||||
gst_util_uint64_scale (ntprtptime - rtptime_tmp, jbuf->clock_rate,
|
||||
GST_SECOND);
|
||||
gst_util_uint64_scale (ntprtptime - rtptime_tmp, GST_SECOND,
|
||||
jbuf->clock_rate);
|
||||
else
|
||||
ntptime +=
|
||||
gst_util_uint64_scale (rtptime_tmp - ntprtptime, jbuf->clock_rate,
|
||||
GST_SECOND);
|
||||
gst_util_uint64_scale (rtptime_tmp - ntprtptime, GST_SECOND,
|
||||
jbuf->clock_rate);
|
||||
|
||||
rtpsystime =
|
||||
gst_clock_adjust_with_calibration (media_clock, ntptime, internal,
|
||||
|
|
Loading…
Reference in a new issue