OSDN Git Service

genX_mfd: remove emulation byte on MB layer boundary
authorcarpalis <jerome.borsboom@carpalis.nl>
Sat, 21 Oct 2017 10:22:19 +0000 (12:22 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 5 Jan 2018 06:57:31 +0000 (14:57 +0800)
commitf5aec8df5d853961cdba65961893102094909f08
tree36d066a25a1b7cb17ef303c64ff4126be051544b
parent3d5c53dcdc25ea09c6a469c91c2555ad63e2b7a0
genX_mfd: remove emulation byte on MB layer boundary

As stated in the PRM, VC-1 decoder hardware cannot handle the case
where the second 0x00 byte in the emulation prevention pattern
0x00 0x00 0x03 (0x00-0x03) coincides with the start of the
MB layer. Fixed by overwriting the 0x03 byte with the previous 0x00
byte and adjusting the MB layer byte offset accordingly.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
src/gen6_mfd.c
src/gen75_mfd.c
src/gen7_mfd.c
src/gen8_mfd.c