vl/rbsp: add a check for emulation prevention three byte
authorLeo Liu <leo.liu@amd.com>
Mon, 8 Aug 2016 20:01:23 +0000 (16:01 -0400)
committerLeo Liu <leo.liu@amd.com>
Wed, 10 Aug 2016 13:52:44 +0000 (09:52 -0400)
commit6575ebdc4570b54ad98eaa2db19703a636acdc9d
tree4e7bb73b3fcf1de937e64fac20de13d8888e9ab4
parentbc5df3b321c5393b2f10115cfa5acc8f11bd7146
vl/rbsp: add a check for emulation prevention three byte

This is the case when the "00 00 03" is very close to the beginning of
nal unit header

v2: move the check to rbsp init

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_rbsp.h