From c588b35e677c8016d772e1ff2e70f96ad1f43b86 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 21 Jan 2015 16:04:57 +0200 Subject: Fix the GetConfigAttributes() for JPEGBaseline profile Advertise the PACKED_RAW_DATA header support for JPEGEncoding. (cherry picked from commit 3d16cf07b6b65b9bd5c2dd855d97558264a12e79) --- src/i965_drv_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 29ccf05..ac2aeac 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -735,6 +735,10 @@ i965_GetConfigAttributes(VADriverContextP ctx, } break; } + else if (entrypoint == VAEntrypointEncPicture) { + if (profile == VAProfileJPEGBaseline) + attrib_list[i].value = VA_ENC_PACKED_HEADER_RAW_DATA; + } break; case VAConfigAttribEncMaxRefFrames: -- cgit v1.2.3