From f7a4318b5427e57887f9aea756575b9910a1cd16 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Mon, 6 Aug 2012 15:31:50 +0300 Subject: [PATCH] asfdemux: avoid some more invalid timestamp arithmetic Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681291 --- gst/asfdemux/asfpacket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c index fc9552d282..5942730dc9 100644 --- a/gst/asfdemux/asfpacket.c +++ b/gst/asfdemux/asfpacket.c @@ -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