mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
decklinkvideosrc: Fix scaling with rate of internal/external clock
This commit is contained in:
parent
2e5d6c3a3e
commit
72b440cc89
1 changed files with 2 additions and 2 deletions
|
@ -397,11 +397,11 @@ gst_decklink_video_src_convert_to_external_clock (GstDecklinkVideoSrc * self,
|
|||
// For the duration we just scale
|
||||
if (internal > internal_timestamp) {
|
||||
guint64 diff = internal - internal_timestamp;
|
||||
diff = gst_util_uint64_scale (diff, rate_d, rate_n);
|
||||
diff = gst_util_uint64_scale (diff, rate_n, rate_d);
|
||||
*timestamp = external - diff;
|
||||
} else {
|
||||
guint64 diff = internal_timestamp - internal;
|
||||
diff = gst_util_uint64_scale (diff, rate_d, rate_n);
|
||||
diff = gst_util_uint64_scale (diff, rate_n, rate_d);
|
||||
*timestamp = external + diff;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue