summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-12-12 17:02:35 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-01-16 15:55:10 +0000
commitfbff44711afa01e1c4f2dff7a6f3f960ab36ec13 (patch)
treef9eb8286bff2886a5149572ff0e51c6fbc6d17a9 /ext
parent5b7d9e1954e58abd64d7d133d94fb67aef94d507 (diff)
oggmux: fix clipped duration determination for non 0 based segments
https://bugzilla.gnome.org/show_bug.cgi?id=740422
Diffstat (limited to 'ext')
-rw-r--r--ext/ogg/gstoggmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c
index c495dad06..7ee3beb48 100644
--- a/ext/ogg/gstoggmux.c
+++ b/ext/ogg/gstoggmux.c
@@ -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,