[FFmpeg-cvslog] Allow using only the mfra info for seeking using the fragment index

Justin Ruggles git at videolan.org
Sun Oct 11 14:24:24 EEST 2020


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Oct  2 08:51:19 2020 -0400| [2be3eb7f77a3b6433016f5691ed504f99e0377da] | committer: Derek Buitenhuis

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 <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2be3eb7f77a3b6433016f5691ed504f99e0377da
---

 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) {



More information about the ffmpeg-cvslog mailing list