From 4f8506daecdff13236374eb97897bb3c7abeafce Mon Sep 17 00:00:00 2001 From: Lakshmi Kumar Date: Mon, 10 Jun 2024 08:09:29 -0700 Subject: [PATCH] RHEL - va version check for av1 (#365) * rhel va version check for av1 * remove #else case --- src/rocdecode/vaapi/vaapi_videodecoder.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rocdecode/vaapi/vaapi_videodecoder.cpp b/src/rocdecode/vaapi/vaapi_videodecoder.cpp index 5e71c00522..58888ea958 100644 --- a/src/rocdecode/vaapi/vaapi_videodecoder.cpp +++ b/src/rocdecode/vaapi/vaapi_videodecoder.cpp @@ -152,9 +152,11 @@ rocDecStatus VaapiVideoDecoder::CreateDecoderConfig() { case rocDecVideoCodec_AVC: va_profile_ = VAProfileH264Main; break; +#if VA_CHECK_VERSION(1,6,0) case rocDecVideoCodec_AV1: va_profile_ = VAProfileAV1Profile0; break; +#endif default: ERR("The codec type is not supported."); return ROCDEC_NOT_SUPPORTED; @@ -303,7 +305,7 @@ rocDecStatus VaapiVideoDecoder::SubmitDecode(RocdecPicParams *pPicParams) { } break; } - +#if VA_CHECK_VERSION(1,6,0) case rocDecVideoCodec_AV1: { pPicParams->pic_params.av1.current_frame = curr_surface_id; @@ -345,6 +347,7 @@ rocDecStatus VaapiVideoDecoder::SubmitDecode(RocdecPicParams *pPicParams) { } break; } +#endif default: { ERR("The codec type is not supported.");