mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
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:
parent
bd8201566d
commit
77a3c288bd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user