From: Mark Nauwelaerts Date: Fri, 20 Jul 2012 14:12:45 +0000 (+0200) Subject: asfdemux: make sure to avoid arithmetic with _NONE timestamp X-Git-Tag: 1.19.3~505^2~710 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95a5992d2b138a50547be1a49899c52041498a57;p=platform%2Fupstream%2Fgstreamer.git asfdemux: make sure to avoid arithmetic with _NONE timestamp --- diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c index 1ae0154..fc9552d 100644 --- a/gst/asfdemux/asfpacket.c +++ b/gst/asfdemux/asfpacket.c @@ -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;