lavf/mov: fix crash in mov_read_sidx

Use correct index into streams

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
John Stebbins 2017-11-24 08:18:16 -08:00 committed by Michael Niedermayer
parent a1f8f1340a
commit bdddcb7b03
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}