Commit 77a3c288 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent bd820156
...@@ -4338,8 +4338,8 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -4338,8 +4338,8 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
uint8_t version; uint8_t version;
unsigned i, track_id; unsigned i, track_id;
AVStream *st = NULL; AVStream *st = NULL;
AVStream *ref_st; AVStream *ref_st = NULL;
MOVStreamContext *sc, *ref_sc; MOVStreamContext *sc, *ref_sc = NULL;
MOVFragmentIndex *index = NULL; MOVFragmentIndex *index = NULL;
MOVFragmentIndex **tmp; MOVFragmentIndex **tmp;
AVRational timescale; AVRational timescale;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment