OSDN Git Service

genX_mfd: mask unused bits in bitplane_present.value
authorcarpalis <jerome.borsboom@carpalis.nl>
Sun, 22 Oct 2017 11:29:19 +0000 (13:29 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 5 Jan 2018 06:57:31 +0000 (14:57 +0800)
commitcf28a014f718600a0583c5f64f54e36cfb7c4d11
tree49f7391a7f70ff2e930b22a1790403bae9bd1cf3
parentf01b8450282ea374ead0ce87c95369ed3c67d819
genX_mfd: mask unused bits in bitplane_present.value

Due to the union construct, unused bits in bitplane_present.value might
be uninitialized even when the used bits are all set to a value.
Masking the unused bits prevents spurious true values when all used
bits are unset, e.g. skipped pictures.

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