summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2017-06-06 08:26:20 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-09-27 12:48:16 +0800
commit1a6998c0f4ec0aba4b0fc4fb80a8017df8a40a95 (patch)
tree652a8595227d23e69c49232a099cad0861fb1ec4
parentd6db61ff7c74307ff845c8252205b0dadc23aba1 (diff)
downloadlibva-1a6998c0f4ec0aba4b0fc4fb80a8017df8a40a95.tar.gz
Refine the data type of slice_data_flag in VASliceParameterBufferHEVC to be consistent with other codecs
Currently the data type of slice_data_flag in VASliceParameterBufferHEVC is uint16_t while it is uint32_t for other codecs. It is inconsistent. As the memory is allocated as aligned, it still allocates four bytes for it. So it will be better to use the consistent data type. This fixes https://github.com/01org/libva/issues/58 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r--va/va_dec_hevc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/va_dec_hevc.h b/va/va_dec_hevc.h
index d61a283..a3238d5 100644
--- a/va/va_dec_hevc.h
+++ b/va/va_dec_hevc.h
@@ -254,7 +254,7 @@ typedef struct _VASliceParameterBufferHEVC
/** \brief The offset to the NAL unit header for this slice */
uint32_t slice_data_offset;
/** \brief Slice data buffer flags. See \c VA_SLICE_DATA_FLAG_XXX. */
- uint16_t slice_data_flag;
+ uint32_t slice_data_flag;
/**
* \brief Byte offset from NAL unit header to the begining of slice_data().
*