summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2017-08-24 08:45:10 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-09-27 12:49:34 +0800
commitc0716f3dfbbf7767fd8b5e9cf26301e80e9e24a4 (patch)
tree8bf20db150a9b813f41fd99f19affa16ee29e043
parent8035c8afd8bc2f93c012aa861de73366addaa659 (diff)
downloadlibva-c0716f3dfbbf7767fd8b5e9cf26301e80e9e24a4.tar.gz
Fix deprecated warning
enums marked as deprecated should not be used any more. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--va/va_enc_h264.h2
-rw-r--r--va/va_enc_hevc.h2
-rw-r--r--va/va_fool.c3
-rwxr-xr-xva/va_trace.c1
4 files changed, 3 insertions, 5 deletions
diff --git a/va/va_enc_h264.h b/va/va_enc_h264.h
index 216f2ed..079a91f 100644
--- a/va/va_enc_h264.h
+++ b/va/va_enc_h264.h
@@ -122,7 +122,7 @@ typedef enum {
* \c VA_ENC_PACKED_HEADER_RAW_DATA to pass the corresponding packed
* SEI header data buffer to the driver
*/
- VAEncPackedHeaderH264_SEI va_deprecated_enum = (VAEncPackedHeaderMiscMask | 1),
+ VAEncPackedHeaderH264_SEI va_deprecated_enum = (0x80000000 | 1),
} VAEncPackedHeaderTypeH264;
/**
diff --git a/va/va_enc_hevc.h b/va/va_enc_hevc.h
index 3afa880..127b7b9 100644
--- a/va/va_enc_hevc.h
+++ b/va/va_enc_hevc.h
@@ -134,7 +134,7 @@ typedef enum {
* \c VA_ENC_PACKED_HEADER_RAW_DATA to pass the corresponding packed
* SEI header data buffer to the driver
*/
- VAEncPackedHeaderHEVC_SEI va_deprecated_enum = (VAEncPackedHeaderMiscMask | 1),
+ VAEncPackedHeaderHEVC_SEI va_deprecated_enum = (0x80000000 | 1),
} VAEncPackedHeaderTypeHEVC;
/**
diff --git a/va/va_fool.c b/va/va_fool.c
index 3307374..0625277 100644
--- a/va/va_fool.c
+++ b/va/va_fool.c
@@ -187,8 +187,7 @@ int va_FoolCreateConfig(
fool_ctx->enabled = 1;
else if ((va_fool_codec & VA_FOOL_FLAG_ENCODE) && (entrypoint == VAEntrypointEncSlice)) {
/* H264 is desired */
- if (((profile == VAProfileH264Baseline ||
- profile == VAProfileH264Main ||
+ if (((profile == VAProfileH264Main ||
profile == VAProfileH264High ||
profile == VAProfileH264ConstrainedBaseline)) &&
strstr(fool_ctx->fn_enc, "h264"))
diff --git a/va/va_trace.c b/va/va_trace.c
index 78d920a..3f24441 100755
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -4791,7 +4791,6 @@ void va_TraceRenderPicture(
va_TraceMPEG4Buf(dpy, context, buffers[i], type, size, num_elements, pbuf + size*j);
}
break;
- case VAProfileH264Baseline:
case VAProfileH264Main:
case VAProfileH264High:
case VAProfileH264ConstrainedBaseline: