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>
Mon, 8 Dec 2014 18:08:30 +0000 (19:08 +0100)
commit4fde30ba9d050443fb14116fb206d0d37092bed0
treefd1a7d1c486db8ed05b2ce1b1d7c4a4b9bfe846d
parenta06432b6c315fda5a9cc69059fd106d231e7da6c
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>
(cherry picked from commit ea38e5a6b75706477898eb1e6582d667dbb9946c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc_ps.c