mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
asfdemux: make sure to avoid arithmetic with _NONE timestamp
This commit is contained in:
parent
cde5a81aba
commit
95a5992d2b
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ gst_asf_payload_queue_for_stream (GstASFDemux * demux, AsfPayload * payload,
|
|||
}
|
||||
|
||||
/* make timestamps start from 0 */
|
||||
if (G_LIKELY (demux->first_ts < payload->ts))
|
||||
if (G_LIKELY (GST_CLOCK_TIME_IS_VALID (demux->first_ts) &&
|
||||
demux->first_ts < payload->ts))
|
||||
payload->ts -= demux->first_ts;
|
||||
else
|
||||
payload->ts = 0;
|
||||
|
|
Loading…
Reference in a new issue