avcodec/hevc_ps: Check num_long_term_ref_pics_sps
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 28 Nov 2014 02:46:56 +0000 (03:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 28 Nov 2014 02:57:13 +0000 (03:57 +0100)
commitea38e5a6b75706477898eb1e6582d667dbb9946c
treee827adffba77d110b02f33aa518bf3babd3bc727
parentcfd83a8af6bfc1c75f019816200f36cbf0418c1b
avcodec/hevc_ps: Check num_long_term_ref_pics_sps

Fixes out of array access
Fixes: signal_sigsegv_35bd0f0_1182_cov_791726764_STRUCT_B_Samsung_4.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc_ps.c