fix chroma qp offsets to be ints

This commit is contained in:
Dave Airlie authored and elwrcl committed 2026-07-21 22:08:56 +03:00
1 parent 824423d998
commit 1ddc1b218a
1 file changed
+2 -2
+2 -2
View File
@@ -230,8 +230,8 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer,
avc_img.WeightedBiPredictionIDC = pps->weighted_bipred_idc;
avc_img.WeightedPredictionEnable = pps->flags.weighted_pred_flag;
avc_img.FirstChromaQPOffset = pps->chroma_qp_index_offset & 0x1f;
avc_img.SecondChromaQPOffset = pps->second_chroma_qp_index_offset & 0x1f;
avc_img.FirstChromaQPOffset = pps->chroma_qp_index_offset;
avc_img.SecondChromaQPOffset = pps->second_chroma_qp_index_offset;
avc_img.FieldPicture = h264_pic_info->pStdPictureInfo->flags.field_pic_flag;
avc_img.MBAFFMode = (sps->flags.mb_adaptive_frame_field_flag &&
!h264_pic_info->pStdPictureInfo->flags.field_pic_flag);