frontends/va: Parse enc_constraint_set_flags from packed SPS

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>

(Reviewed in PR !26556 as well)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26573>
This commit is contained in:
Sil Vilerino
2023-12-01 17:18:45 -05:00
committed by Marge Bot
parent 32667f78ab
commit fc69d65a4e

View File

@@ -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 */