Message ID | 20171124161816.25331-1-jstebbins@jetheaddev.com |
---|---|
State | Accepted |
Commit | bdddcb7b030d075dffa2989222d687106c06d50c |
Headers | show |
On Fri, Nov 24, 2017 at 08:18:16AM -0800, John Stebbins wrote: > Use correct index into streams > --- > libavformat/mov.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply thanks [...]
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; }