mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
oggmux: fix clipped duration determination for non 0 based segments
https://bugzilla.gnome.org/show_bug.cgi?id=740422
This commit is contained in:
parent
5b7d9e1954
commit
fbff44711a
1 changed files with 1 additions and 1 deletions
|
@ -857,7 +857,7 @@ gst_ogg_mux_decorate_buffer (GstOggMux * ogg_mux, GstOggPadData * pad,
|
|||
gst_ogg_stream_granule_to_time (&pad->map, pad->next_granule + duration);
|
||||
if (end_time > pad->segment.stop
|
||||
&& !GST_CLOCK_TIME_IS_VALID (gst_segment_to_running_time (&pad->segment,
|
||||
GST_FORMAT_TIME, end_time))) {
|
||||
GST_FORMAT_TIME, pad->segment.start + end_time))) {
|
||||
gint64 actual_duration =
|
||||
gst_util_uint64_scale_round (pad->segment.stop - time,
|
||||
pad->map.granulerate_n,
|
||||
|
|
Loading…
Reference in a new issue