hevc: check that VPS referenced from SPS exists
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Jan 2014 20:32:04 +0000 (21:32 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 21 Jan 2014 10:57:36 +0000 (11:57 +0100)
commita7a07cc98ac548297b5b0628cb81280e11952e3f
treec99d3b2aab02060a942ccb2f12fcff8116864e2e
parentdd2d0039b6405dc724e4fef0d5b8f49530eea3aa
hevc: check that VPS referenced from SPS exists

This matches how its done for SPS/PPS.
Fixes null pointer dereference.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/hevc_ps.c