Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 3531bd0

Browse files
committed
Accept empty packed headers attribute in vaCreateConfig()
This indicates to the driver that the user will not supply any packed headers, even though the possibility is available. This was an API/ABI break in cccf2a3, and existing programs such as libavcodec do use this pattern. Signed-off-by: Mark Thompson <[email protected]>
1 parent bb92421 commit 3531bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/i965_drv_video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ i965_CreateConfig(VADriverContextP ctx,
14311431
if (attrib_found) {
14321432
uint32_t enc_packed_attribs = i965_get_enc_packed_attributes(ctx, profile, entrypoint);
14331433

1434-
if (!(attrib_found->value & enc_packed_attribs))
1434+
if (attrib_found->value && !(attrib_found->value & enc_packed_attribs))
14351435
vaStatus = VA_STATUS_ERROR_INVALID_VALUE;
14361436
}
14371437
}

0 commit comments

Comments
 (0)