[FFmpeg-devel] avformat/mov: fix sidx size being doubled in offset.

Submitted by no pls on Jan. 27, 2019, 4:08 p.m.

Details

Message ID 20190127160829.21377-1-agrecascino123@gmail.com
State New
Headers show

Commit Message

no pls Jan. 27, 2019, 4:08 p.m.
From: mptcultist <agrecascino123@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(-)

Patch hide | download patch | download mbox

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;