mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
asfdemux: avoid some more invalid timestamp arithmetic
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681291
This commit is contained in:
parent
87d9927126
commit
f7a4318b54
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ gst_asf_payload_queue_for_stream (GstASFDemux * demux, AsfPayload * payload,
|
|||
|
||||
/* make timestamps start from 0 */
|
||||
if (G_LIKELY (GST_CLOCK_TIME_IS_VALID (demux->first_ts) &&
|
||||
GST_CLOCK_TIME_IS_VALID (payload->ts) &&
|
||||
demux->first_ts < payload->ts))
|
||||
payload->ts -= demux->first_ts;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue