avcodec/hevc_ps: check that VPS referenced from SPS exists
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Jan 2014 01:51:20 +0000 (02:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Jan 2014 22:47:39 +0000 (23:47 +0100)
commit4b0cecb457c7eda2baf0264b97d9038bdfb531da
tree615e40fa5df5261aedf98b78b880b038d58f13bb
parent3dae9d13e51c4b0a8b181e4f0a2b460e8465eeec
avcodec/hevc_ps: check that VPS referenced from SPS exists

This matches how its done for SPS/PPS.
An alternative to this is to check it when its used.

Fixes null pointer dereference
Fixes: signal_sigsegv_e30a43_1437_CIP_A_Panasonic_3.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d66bab0a69ac1860e78dd951ad8db1a507e75642)

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