diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2017-08-23 09:14:17 -0700 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-08-24 08:55:06 +0800 |
commit | d1617e75aeaf24feed9e83b3ad70cf983587cc6f (patch) | |
tree | f61fe631ce4a800bad6a1ea60241c30b6fd56a07 | |
parent | fcab2f8d7512eb369cfeef4bba77d380f8e7ded7 (diff) | |
download | libva-intel-driver-d1617e75aeaf24feed9e83b3ad70cf983587cc6f.tar.gz |
FEI: validate VAConfigAttribRateControl in i965_CreateConfig
VAEntrypointFEI only supports VA_RC_CQP in VAConfigAttribRateControl
config attribute. Return VA_STATUS_ERROR_INVALID_CONFIG if it's
set to anything else.
Fixes #257
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r-- | src/i965_drv_video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 122586f6..713ce242 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -1338,6 +1338,9 @@ i965_CreateConfig(VADriverContextP ctx, else if ((entrypoint == VAEntrypointEncSliceLP) && attrib_found && !(attrib_found->value & i965->codec_info->lp_h264_brc_mode)) vaStatus = VA_STATUS_ERROR_INVALID_CONFIG; + else if ((entrypoint == VAEntrypointFEI) && attrib_found && + !(attrib_found->value == VA_RC_CQP)) + vaStatus = VA_STATUS_ERROR_INVALID_CONFIG; break; default: break; |