OSDN Git Service

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>
Mon, 6 Jan 2014 03:30:04 +0000 (04:30 +0100)
commitd66bab0a69ac1860e78dd951ad8db1a507e75642
tree49fe7182d40785e0e0c119ca7f3ddb3cf605fa60
parent4816d63fb7f69687af8a9b21858612a53c24d025
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>
libavcodec/hevc_ps.c