avformat/mpegts: Check desc_len / get8() return code
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 02:29:40 +0000 (04:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 02:30:59 +0000 (04:30 +0200)
commitc3d7f00ee3e09801f56f25db8b5961f25e842bd2
tree771effc4d28161526f576a15538c0860214209c9
parent8c50704ebf1777bee76772c4835d9760b3721057
avformat/mpegts: Check desc_len / get8() return code

Fixes out of array read
Fixes: signal_sigsegv_844d59_10_signal_sigsegv_a17bb7_366_mpegts_mpeg2video_mp2_dvbsub_topfield.rec

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c