Browse Source

lavf/mov: fix crash in mov_read_sidx

Use correct index into streams

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
John Stebbins Michael Niedermayer 8 years ago
parent
commit
bdddcb7b03
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mov.c

+ 1
- 1
libavformat/mov.c 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;
}


Loading…
Cancel
Save