Skip to content

Commit b09c9f6

Browse files
authored
Merge pull request #423 from xxmicloxx/fix-getConfigAttributes
Fix nvGetConfigAttributes by adding a missing check for entrypoint
2 parents 2e204c6 + 3a95da5 commit b09c9f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vabackend.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ static VAStatus nvGetConfigAttributes(
618618
int num_attribs
619619
)
620620
{
621+
if (entrypoint != VAEntrypointVLD) {
622+
return VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT;
623+
}
624+
621625
NVDriver *drv = (NVDriver*) ctx->pDriverData;
622626
if (vaToCuCodec(profile) == cudaVideoCodec_NONE) {
623627
return VA_STATUS_ERROR_UNSUPPORTED_PROFILE;

0 commit comments

Comments
 (0)