mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
matroskademux: mind (un)signed in some timestamp arithmetic
... to avoid ending up with invalid (negative) duration.
This commit is contained in:
parent
ed3f89fad5
commit
581ca6ce4e
1 changed files with 2 additions and 2 deletions
|
@ -3485,8 +3485,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
|
||||
GST_OBJECT_LOCK (demux);
|
||||
if (demux->common.segment.duration == -1 ||
|
||||
demux->common.segment.duration <
|
||||
lace_time - demux->stream_start_time) {
|
||||
demux->stream_start_time + demux->common.segment.duration <
|
||||
last_stop_end) {
|
||||
gst_segment_set_duration (&demux->common.segment, GST_FORMAT_TIME,
|
||||
last_stop_end - demux->stream_start_time);
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
|
|
Loading…
Reference in a new issue