Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stebbins <jstebbins@jetheaddev.com>2017-11-24 19:18:16 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-11-25 04:32:33 +0300
commitbdddcb7b030d075dffa2989222d687106c06d50c (patch)
treec430bbf813136d84dca1bf784253ef554446b8d4
parenta1f8f1340accda1a59d45f3344430e393badc963 (diff)
lavf/mov: fix crash in mov_read_sidx
Use correct index into streams Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mov.c2
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;
}