hevc: do generic validation of bitstream
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Sun, 10 Aug 2014 17:22:06 +0000 (19:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Aug 2014 00:47:05 +0000 (02:47 +0200)
commit5ec85c9750f0770383b781acd6362a8bebbf4db6
treee0f88a13014fd147c6c9a85c98627fe94f7290f2
parentbfffce4d081c87b9fadcc0ce3fb5309cf8f266e5
hevc: do generic validation of bitstream

After finishing parsing VPS/SPS/PPS/slice header, check remaining bits,
and if an overconsumption occurred, report invalid data.

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