summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-03-30 23:03:24 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-03-30 23:35:18 +0200
commit77a3c288bd57cb47aa8382ce57732775f6730519 (patch)
tree43a875f381b96ba21129d2cd1b9794efa5f0b146 /libavformat/mov.c
parentbd8201566d754384105923bb1fb3bb3a5c08cc8b (diff)
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>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 127aec1d1d..e487e59634 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;