diff options
author | John Stebbins <jstebbins@jetheaddev.com> | 2017-11-24 08:18:16 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-25 02:32:33 +0100 |
commit | bdddcb7b030d075dffa2989222d687106c06d50c (patch) | |
tree | c430bbf813136d84dca1bf784253ef554446b8d4 /libavformat/mov.c | |
parent | a1f8f1340accda1a59d45f3344430e393badc963 (diff) | |
download | ffmpeg-bdddcb7b030d075dffa2989222d687106c06d50c.tar.gz |
lavf/mov: fix crash in mov_read_sidx
Use correct index into streams
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |