From a2d2a0b5fc0beca8ddf88a118b8f89f519127d68 Mon Sep 17 00:00:00 2001
From: Tanguy Rozier <trozier@freebox.fr>
Date: Tue, 2 Sep 2025 15:14:13 +0200
Subject: [PATCH 5/6] avformat/mov: search in fragment index even if not
 complete


diff --git a/libavformat/mov.c b/libavformat/mov.c
index 706ef5a01e..eea27131e4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -11258,7 +11258,7 @@ static int mov_seek_fragment(AVFormatContext *s, AVStream *st, int64_t timestamp
     MOVContext *mov = s->priv_data;
     int index;
 
-    if (!mov->frag_index.complete)
+    if ((!mov->frag_index.complete && !(mov->fc->flags & AVFMT_FLAG_IGNIDX)) || (mov->frag_index.nb_items == 0))
         return 0;
 
     index = search_frag_timestamp(s, &mov->frag_index, st, timestamp);
-- 
2.51.0

