avformat/avidec: Check nb_streams in read_gab2_sub()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Sep 2016 14:14:08 +0000 (16:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Oct 2016 00:50:54 +0000 (02:50 +0200)
commit622ccbd8ab894e3ac6cdf607e3d4f39e406786e9
treee4b9d55495f9f153d487f74f0bc274f4e98c4f8f
parentc8c5f66b42edc37474baa5cb51460cbf6f33075b
avformat/avidec: Check nb_streams in read_gab2_sub()

Fixes null pointer dereference
Fixes: 1/null_point.avi

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2679ad4773aa356e7c3da5c68bc81f02a194617f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avidec.c