[FFmpeg-cvslog] lavf/mov: fix crash in mov_read_sidx

John Stebbins git at videolan.org
Sat Nov 25 03:34:47 EET 2017


ffmpeg | branch: master | John Stebbins <jstebbins at jetheaddev.com> | Fri Nov 24 08:18:16 2017 -0800| [bdddcb7b030d075dffa2989222d687106c06d50c] | committer: Michael Niedermayer

lavf/mov: fix crash in mov_read_sidx

Use correct index into streams

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index f3e86dfc6d..ddb1e59b85 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4816,7 +4816,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
                 MOVFragmentStreamInfo * si;
                 si = &item->stream_info[j];
                 if (si->sidx_pts != AV_NOPTS_VALUE) {
-                    ref_st = c->fc->streams[i];
+                    ref_st = c->fc->streams[j];
                     ref_sc = ref_st->priv_data;
                     break;
                 }



More information about the ffmpeg-cvslog mailing list