avcodec/hevc_ps: Check chroma_format_idc
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Nov 2015 13:52:33 +0000 (14:52 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Nov 2015 14:04:57 +0000 (15:04 +0100)
commit93f30f825c08477fe8f76be00539e96014cc83c8
treee5ac4f84268cea4637e561f01aa0ed364885fde6
parenta813cdda487e252681df36f675332b04c2e0e5a6
avcodec/hevc_ps: Check chroma_format_idc

Fixes out of array access
Fixes: 24d05e8b84676799c735c9e27d97895e/asan_heap-oob_1b70f6a_2955_7c3652a7f370f9f3ef40642bc2c99bb2.bit

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_ps.c