From d8853af3a9c1bd6ccd7f29eea302e61efc4a546f Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 1 Jun 2017 15:49:46 +0800 Subject: update VAEncMacroblockParameterBufferH264 The type of bits should be a struct type, otherwise the flags in bits will be impacted each other. In addtion this adds a reserved byte to bits struct in inter_fields, this should fix https://github.com/01org/libva/issues/35 Signed-off-by: Xiang, Haihao --- va/va_enc_h264.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/va/va_enc_h264.h b/va/va_enc_h264.h index c62ec93..a0d6784 100644 --- a/va/va_enc_h264.h +++ b/va/va_enc_h264.h @@ -554,8 +554,8 @@ typedef struct _VAEncMacroblockParameterBufferH264 { union { /** @name Data for intra macroblock */ /**@{*/ - struct { - union { + union { + struct { /** * \brief Flag specified to override MB neighbour * availability bits from VME stage. @@ -582,8 +582,9 @@ typedef struct _VAEncMacroblockParameterBufferH264 { /** @name Data for inter macroblock */ /**@{*/ - struct { - union { + union { + struct { + unsigned int reserved; } bits; unsigned int value; } inter_fields; -- cgit v1.2.1