diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2017-06-06 08:26:20 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-09-27 12:48:16 +0800 |
commit | 1a6998c0f4ec0aba4b0fc4fb80a8017df8a40a95 (patch) | |
tree | 652a8595227d23e69c49232a099cad0861fb1ec4 | |
parent | d6db61ff7c74307ff845c8252205b0dadc23aba1 (diff) | |
download | libva-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.h | 2 |
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(). * |