diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index d8f00ef..0e82103 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -2626,10 +2626,14 @@ gst_ogg_demux_collect_chain_info (GstOggDemux * ogg, GstOggChain * chain)
       chain->segment_start = MIN (chain->segment_start, pad->start_time);
   }
 
+  if (chain->segment_start == G_MAXUINT64)
+    chain->segment_start = 0;
+
   if (chain->segment_stop != GST_CLOCK_TIME_NONE
       && chain->segment_start != G_MAXUINT64)
     chain->total_time = chain->segment_stop - chain->segment_start;
 
+  GST_DEBUG ("chain start %" G_GUINT64_FORMAT " stop %" G_GUINT64_FORMAT, chain->segment_start, chain->segment_stop);
   GST_DEBUG ("total time %" G_GUINT64_FORMAT, chain->total_time);
 
   GST_DEBUG_OBJECT (ogg, "return %d", res);
