d3d12: fix d3d12_video_nalu_writer_h264::write_slice_svc_prefix

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com>

Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312>
This commit is contained in:
Pohsiang (John) Hsu 2024-12-10 11:33:51 -08:00 committed by Marge Bot
parent bf7edb9a2d
commit 7cd9de460b

View file

@ -692,14 +692,15 @@ d3d12_video_nalu_writer_h264::write_slice_svc_prefix(const H264_SLICE_PREFIX_SVC
{
rbsp.put_bits(1, nal_svc_prefix.store_ref_base_pic_flag);
rbsp.put_bits(1, 0 /* additional_prefix_nal_unit_extension_flag */);
rbsp_trailing(&rbsp);
rbsp.flush();
}
else
{
// No more_rbsp_data( ) so we don't need to code anything else
}
rbsp_trailing(&rbsp);
rbsp.flush();
if (wrap_rbsp_into_nalu(&nalu, &rbsp, nal_svc_prefix.nal_ref_idc, NAL_TYPE_PREFIX, &nal_svc_prefix) <= 0u) {
debug_printf(