Skip to content

Commit 3a95da5

Browse files
committed
Fix nvGetConfigAttributes by adding a missing check for entrypoint
1 parent 2e204c6 commit 3a95da5

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)