[FFmpeg-devel] [PATCH] avformat/mov: fix sidx size being doubled in	offset.
    agrecascino123 at gmail.com 
    agrecascino123 at gmail.com
       
    Sun Jan 27 18:08:29 EET 2019
    
    
  
From: mptcultist <agrecascino123 at 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
    
    
More information about the ffmpeg-devel
mailing list