avcodec/h264_ps: More completely check the bit depths
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Feb 2015 03:11:56 +0000 (04:11 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Feb 2015 18:43:18 +0000 (19:43 +0100)
commiteca1e3dcc8473bc6b51e91d2a80c8bc13fbaa5b3
tree9b35e40685d8f00f90956dcca0d703c06a5f9388
parent7c3a3d47cf7f5d45a7f794b9509a907161d27f64
avcodec/h264_ps: More completely check the bit depths

Fixes out of array read
Fixes: asan_static-oob_30328b6_719_cov_3325483287_H264_artifacts_motion.h264

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 69aa79365c1e8e1cb597d33e77bf1062c2ef47d4)

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