diff --git a/subprojects/gst-plugins-good/gst/flv/gstflvmux.c b/subprojects/gst-plugins-good/gst/flv/gstflvmux.c index 338e5a52a8..b7326f2044 100644 --- a/subprojects/gst-plugins-good/gst/flv/gstflvmux.c +++ b/subprojects/gst-plugins-good/gst/flv/gstflvmux.c @@ -1674,9 +1674,9 @@ static GstClockTime gst_flv_mux_segment_to_running_time (const GstSegment * segment, GstClockTime t) { /* we can get a dts before the segment, if dts < pts and pts is inside - * the segment, so we consider early times as 0 */ + * the segment, so we consider early times to map to segment start */ if (t < segment->start) - return 0; + t = segment->start; return gst_segment_to_running_time (segment, GST_FORMAT_TIME, t); }