diff --git a/.pick_status.json b/.pick_status.json index eae31bf0dd1..fef3b668112 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3454,7 +3454,7 @@ "description": "vulkan/video: Do byte-alignment when building a h264 slice header", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "ff8de61907083855a5c3bf307e133628cd919b4c", "notes": null diff --git a/src/vulkan/runtime/vk_video.c b/src/vulkan/runtime/vk_video.c index 1791a676278..aa3ee5da951 100644 --- a/src/vulkan/runtime/vk_video.c +++ b/src/vulkan/runtime/vk_video.c @@ -2258,6 +2258,7 @@ vk_video_encode_h264_slice_header(const StdVideoEncodeH264PictureInfo *pic_info, assert(is_aligned); } + vl_bitstream_rbsp_trailing(&enc); vl_bitstream_flush(&enc); *data_size_ptr += vl_bitstream_get_byte_count(&enc); vl_bitstream_encoder_free(&enc);