OSDN Git Service

Refine the data type of slice_data_flag in VASliceParameterBufferHEVC to be consisten...
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 6 Jun 2017 00:26:20 +0000 (08:26 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 27 Sep 2017 04:48:16 +0000 (12:48 +0800)
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>
va/va_dec_hevc.h

index d61a283..a3238d5 100644 (file)
@@ -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().
      *