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>
Fri, 6 Feb 2015 03:41:12 +0000 (04:41 +0100)
commit17ecc8a7716e9ac610a2226baceaeade0c82d2a4
treedfa6cb821437e3e326f79ff56987d8b98fabb547
parent07a55344e636dac584a6f7c6e468b53bd8c3a56d
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)

Conflicts:

libavcodec/h264_ps.c

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