diff --git a/libavformat/mov.c b/libavformat/mov.c
index 90a99d9..0f9d8f2 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -7849,8 +7849,14 @@ static int mov_seek_fragment(AVFormatContext *s, AVStream *st, int64_t timestamp
     MOVContext *mov = s->priv_data;
     int index;
 
+#ifndef DISABLE_TANGUY_PATCH
+    if ((!mov->frag_index.complete && !(mov->fc->flags & AVFMT_FLAG_IGNIDX)) ||
+	(mov->frag_index.nb_items == 0))
+	    return 0;
+#else
     if (!mov->frag_index.complete)
         return 0;
+#endif
 
     index = search_frag_timestamp(&mov->frag_index, st, timestamp);
     if (index < 0)
