Module: Mesa Branch: main Commit: fc69d65a4e86ba95adce2f090f85f3cc6d0fa0a8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc69d65a4e86ba95adce2f090f85f3cc6d0fa0a8
Author: Sil Vilerino <[email protected]> Date: Fri Dec 1 17:18:45 2023 -0500 frontends/va: Parse enc_constraint_set_flags from packed SPS Reviewed-by: Ruijing Dong <[email protected]> Reviewed-by: Jesse Natalie <[email protected]> (Reviewed in PR !26556 as well) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26573> --- src/gallium/frontends/va/picture_h264_enc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/va/picture_h264_enc.c b/src/gallium/frontends/va/picture_h264_enc.c index 70769281d26..b1cd2a94762 100644 --- a/src/gallium/frontends/va/picture_h264_enc.c +++ b/src/gallium/frontends/va/picture_h264_enc.c @@ -375,7 +375,9 @@ static void parseEncSpsParamsH264(vlVaContext *context, struct vl_rbsp *rbsp) profile_idc = vl_rbsp_u(rbsp, 8); - vl_rbsp_u(rbsp, 8); /* constraint_set_flags */ + context->desc.h264enc.seq.enc_constraint_set_flags = + vl_rbsp_u(rbsp, 6); /* constraint_set_flags */ + vl_rbsp_u(rbsp, 2); /* reserved_zero_2bits */ vl_rbsp_u(rbsp, 8); /* level_idc */ vl_rbsp_ue(rbsp); /* seq_parameter_set_id */
