From: Thong Thai Date: Tue, 2 Jun 2020 13:27:07 +0000 (-0400) Subject: frontends/va: Enabled packed headers for H.264 encoder X-Git-Tag: upstream/21.0.0~5222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a4daac0bbf8233f7f1fe5a65aef882f13dccd2e;p=platform%2Fupstream%2Fmesa.git frontends/va: Enabled packed headers for H.264 encoder Signed-off-by: Thong Thai Reviewed-by: Leo Liu Part-of: --- diff --git a/src/gallium/frontends/va/config.c b/src/gallium/frontends/va/config.c index f9f5519..fe96be0 100644 --- a/src/gallium/frontends/va/config.c +++ b/src/gallium/frontends/va/config.c @@ -158,7 +158,8 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint en break; case VAConfigAttribEncPackedHeaders: value = VA_ENC_PACKED_HEADER_NONE; - if (u_reduce_video_profile(ProfileToPipe(profile)) == PIPE_VIDEO_FORMAT_HEVC) + if (u_reduce_video_profile(ProfileToPipe(profile)) == PIPE_VIDEO_FORMAT_MPEG4_AVC || + u_reduce_video_profile(ProfileToPipe(profile)) == PIPE_VIDEO_FORMAT_HEVC) value |= VA_ENC_PACKED_HEADER_SEQUENCE; break; case VAConfigAttribEncMaxRefFrames: