h264: error out on invalid bitdepth.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 1 Mar 2012 19:56:05 +0000 (11:56 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 1 Mar 2012 20:15:51 +0000 (12:15 -0800)
commit0ce4fe482c27abfa7eac503a52fdc50b70ccd871
tree76d88c27d41c95262b514b84240351514a52e54c
parentcc412b71047ebf77c7e810c90b044f018a1c0c2d
h264: error out on invalid bitdepth.

Fixes invalid reads while initializing the dequant tables, which uses
the bit depth to determine the QP table size.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/h264.c