From 2be3eb7f77a3b6433016f5691ed504f99e0377da Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Fri, 2 Oct 2020 08:51:19 -0400 Subject: [PATCH] Allow using only the mfra info for seeking using the fragment index The mfra has enough information to enable seeking, and reading it is behind an AVOption flag, so we shouldn't require that sidx information also be present in order to seek using the fragment index. Signed-off-by: Derek Buitenhuis --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 4f64e96bc0..7fd43a8fc5 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -7529,6 +7529,7 @@ static int mov_read_mfra(MOVContext *c, AVIOContext *f) goto fail; } while (!ret); ret = 0; + c->frag_index.complete = 1; fail: seek_ret = avio_seek(f, original_pos, SEEK_SET); if (seek_ret < 0) {