mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
anv/video: Fix to set high profile to PPS if high profile provided
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36152>
This commit is contained in:
parent
b59552628e
commit
0268f2163b
1 changed files with 3 additions and 1 deletions
|
|
@ -973,7 +973,9 @@ anv_GetEncodedVideoSessionParametersKHR(VkDevice device,
|
|||
char *data_ptr = pData ? (char *)pData + sps_size : NULL;
|
||||
for (unsigned i = 0; i < params->vk.h264_enc.h264_pps_count; i++)
|
||||
if (params->vk.h264_enc.h264_pps[i].base.pic_parameter_set_id == h264_get_info->stdPPSId) {
|
||||
vk_video_encode_h264_pps(¶ms->vk.h264_enc.h264_pps[i].base, false, size_limit, &pps_size, data_ptr);
|
||||
vk_video_encode_h264_pps(¶ms->vk.h264_enc.h264_pps[i].base,
|
||||
params->vk.h264_enc.profile_idc == STD_VIDEO_H264_PROFILE_IDC_HIGH,
|
||||
size_limit, &pps_size, data_ptr);
|
||||
}
|
||||
}
|
||||
total_size = sps_size + pps_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue