]> git.sesse.net Git - ffmpeg/commitdiff
Allow using only the mfra info for seeking using the fragment index
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 2 Oct 2020 12:51:19 +0000 (08:51 -0400)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sun, 11 Oct 2020 11:16:47 +0000 (12:16 +0100)
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 <derek.buitenhuis@gmail.com>
libavformat/mov.c

index 4f64e96bc0fa853da3b80c736d07e1ce27810311..7fd43a8fc5bae561e66c4895e4a9ae8f6bd743f4 100644 (file)
@@ -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) {