From: mptcultist <agrecascino...@gmail.com>

fixes an issue where if the video size was very specific, ffmpeg would hang 
from not filling the sidx_pts for all streams, due to not reading the last sidx 
lump. for #7572

---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9b9739f788..c222582886 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4933,7 +4933,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, 
MOVAtom atom)

static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
-    int64_t offset = avio_tell(pb) + atom.size, pts, timestamp;
+    int64_t offset = avio_tell(pb), pts, timestamp;
    uint8_t version;
    unsigned i, j, track_id, item_count;
    AVStream *st = NULL;
-- 
2.20.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to