hevc_ps: check overflow and test alternate syntax
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Thu, 21 Aug 2014 16:57:18 +0000 (18:57 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Aug 2014 20:04:43 +0000 (22:04 +0200)
commit0625a3806628f3abcc6daa87b34ceb0d165b0160
tree61625a78807c78b9fd52cb1c2d9d8669b4d4483d
parentfca76dc61ed650477c6e537b9db7c4ae2767197b
hevc_ps: check overflow and test alternate syntax

Some streams were found to have what appeared to be truncated SPS.
Their syntax seem to be valid at least until the end of the VUI, so
try that syntax if the parsing would overflow the SPS in the
conforming syntax.

Fixes ticket #3872.

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