ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Mar 30 23:03:24 2017 +0200| [77a3c288bd57cb47aa8382ce57732775f6730519] | committer: 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: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77a3c288bd57cb47aa8382ce57732775f6730519 --- libavformat/mov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 127aec1..e487e59 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
