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, 5 Oct 2016 01:06:45 +0000 (03:06 +0200)
commit239f75d6c3dfbe4def80a12913d5737dd5a5bbcc
treec015175224315a26f4a4215d3cc8e0c716d9469e
parenta772613100514842008271c8d0e5d63a6979f9bf
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