OSDN Git Service

h264: reject mismatching luma/chroma bit depths during sps parsing
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Jan 2014 07:23:45 +0000 (08:23 +0100)
commitbfd26b7ce6efea594f2b99441d900419df3af638
tree4eb352baac6ae985e1324e01092593d3bec96dff
parent9a026c72982faf20e1c8dfbe48f0b312cdea69c8
h264: reject mismatching luma/chroma bit depths during sps parsing

There is no point in delaying the check and it avoids bugs with a
half-initialized context.

Fixes invalid reads.

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