radeon/vcn/enc: Add missing line to HEVC SPS header code
Add previously missing line in HEVC SPS header generation on VCN 1.0
devices, for when an image does not need to be cropped.
Fixes: e62c7e7c6c
("radeon: Add cropping to encoded H.265 when padding is used")
Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11535>
This commit is contained in:
parent
d3fddf63ec
commit
d977e7fbe1
|
@ -412,6 +412,7 @@ static void radeon_enc_nalu_sps_hevc(struct radeon_encoder *enc)
|
|||
radeon_enc_code_ue(enc, enc->enc_pic.session_init.padding_height / 2);
|
||||
radeon_enc_code_ue(enc, enc->enc_pic.session_init.padding_height / 2);
|
||||
} else
|
||||
radeon_enc_code_fixed_bits(enc, 0x0, 1);
|
||||
|
||||
radeon_enc_code_ue(enc, enc->enc_pic.bit_depth_luma_minus8);
|
||||
radeon_enc_code_ue(enc, enc->enc_pic.bit_depth_chroma_minus8);
|
||||
|
|
Loading…
Reference in New Issue