lavf/mov: fix crash in mov_read_sidx

Use correct index into streams

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/272/head
John Stebbins 7 years ago committed by Michael Niedermayer
parent a1f8f1340a
commit bdddcb7b03
  1. 2
      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;
}

Loading…
Cancel
Save