summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2017-06-01 15:49:46 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-09-27 12:48:16 +0800
commitd8853af3a9c1bd6ccd7f29eea302e61efc4a546f (patch)
treec64cbff0dd5de0004ac67635ff3bcbae165f87e3
parent891caae206ebcf8c3a6297b80b36df40f77ef0cd (diff)
downloadlibva-d8853af3a9c1bd6ccd7f29eea302e61efc4a546f.tar.gz
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 <haihao.xiang@intel.com>
-rw-r--r--va/va_enc_h264.h9
1 files 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;