From b59552628e128223c84cd86780a9f3b063f00845 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Fri, 4 Jul 2025 15:29:24 +0900 Subject: [PATCH] vulkan/video: fix to set ref_pic_list_modification_flag_l1 correctly Signed-off-by: Hyunjun Ko Acked-by: Lionel Landwerlin Part-of: --- src/vulkan/runtime/vk_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/runtime/vk_video.c b/src/vulkan/runtime/vk_video.c index 57d3dc4b210..f9b962bb0c2 100644 --- a/src/vulkan/runtime/vk_video.c +++ b/src/vulkan/runtime/vk_video.c @@ -2451,13 +2451,13 @@ vk_video_encode_h264_slice_header(const StdVideoEncodeH264PictureInfo *pic_info, } vl_bitstream_put_bits(&enc, 1, pic_info->pRefLists->flags.ref_pic_list_modification_flag_l0); - vl_bitstream_put_bits(&enc, 1, pic_info->pRefLists->flags.ref_pic_list_modification_flag_l1); - if (pic_info->pRefLists->flags.ref_pic_list_modification_flag_l0) { assert(0); for (unsigned i = 0; i < pic_info->pRefLists->refList0ModOpCount; i++) { } } + + vl_bitstream_put_bits(&enc, 1, pic_info->pRefLists->flags.ref_pic_list_modification_flag_l1); if (pic_info->pRefLists->flags.ref_pic_list_modification_flag_l1) { assert(0); for (unsigned i = 0; i < pic_info->pRefLists->refList1ModOpCount; i++) {