diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c index d2665938d4..924ede8bf2 100644 --- a/gst/asfdemux/asfpacket.c +++ b/gst/asfdemux/asfpacket.c @@ -443,7 +443,10 @@ gst_asf_demux_parse_payload (GstASFDemux * demux, AsfPacket * packet, &payload_data, &payload_len, sub_payload_len); payload.ts = ts; - payload.duration = ts_delta; + if (G_LIKELY (ts_delta)) + payload.duration = ts_delta; + else + payload.duration = GST_CLOCK_TIME_NONE; gst_asf_payload_queue_for_stream (demux, &payload, stream); }