avcodec/vaapi: mask unused bits in bitplane_present.value
authorJerome Borsboom <jerome.borsboom@carpalis.nl>
Sun, 25 Feb 2018 19:13:46 +0000 (20:13 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 4 Mar 2018 22:17:33 +0000 (22:17 +0000)
commit0ec7eb930520b21b9cda34809378b0a8ca3a46e2
tree5098c34954b9bfe3928f923656260e35ef28a905
parent883bdc5fb7c4f579eba1c10e01487b08601ec0be
avcodec/vaapi: 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>
libavcodec/vaapi_vc1.c