mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
radv/video: Fix coding pic_parameter_set_id in H264 slice header
Cc: mesa-stable
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
(cherry picked from commit 25095cc393)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
This commit is contained in:
parent
9794a3970a
commit
842ab24923
2 changed files with 2 additions and 2 deletions
|
|
@ -314,7 +314,7 @@
|
|||
"description": "radv/video: Fix coding pic_parameter_set_id in H264 slice header",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1095,7 +1095,7 @@ radv_enc_slice_header(struct radv_cmd_buffer *cmd_buffer, const VkVideoEncodeInf
|
|||
radv_enc_code_ue(cmd_buffer, 6);
|
||||
break;
|
||||
}
|
||||
radv_enc_code_ue(cmd_buffer, 0x0);
|
||||
radv_enc_code_ue(cmd_buffer, pic->pic_parameter_set_id);
|
||||
|
||||
unsigned int max_frame_num_bits = sps->log2_max_frame_num_minus4 + 4;
|
||||
radv_enc_code_fixed_bits(cmd_buffer, pic->frame_num % (1 << max_frame_num_bits), max_frame_num_bits);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue