avformat/mov: Init ref_sc / ref_st to NULL

This is more robust in case some change or corner case causes them to be
dereferenced before being set

Fixes CID1396274, CID1396275

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-03-30 23:03:24 +02:00
parent bd8201566d
commit 77a3c288bd
1 changed files with 2 additions and 2 deletions

View File

@ -4338,8 +4338,8 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
uint8_t version;
unsigned i, track_id;
AVStream *st = NULL;
AVStream *ref_st;
MOVStreamContext *sc, *ref_sc;
AVStream *ref_st = NULL;
MOVStreamContext *sc, *ref_sc = NULL;
MOVFragmentIndex *index = NULL;
MOVFragmentIndex **tmp;
AVRational timescale;