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>
Wed, 28 Sep 2016 14:46:24 +0000 (16:46 +0200)
commit2679ad4773aa356e7c3da5c68bc81f02a194617f
tree56c7e3f2164df097f9ad0a8ef38b6b5d48e67554
parent14bac7e00d72eac687612d9b125e585011a56d4f
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>
libavformat/avidec.c