From b5b86a0c98fbe58ce243a35aa5a6b9d92eb89842 Mon Sep 17 00:00:00 2001 From: Mengkejiergeli Ba Date: Thu, 16 Feb 2023 11:18:39 +0800 Subject: [PATCH] nvh264dec: Remove type casting Have fixed type of second_chroma_qp_index_offset as gint8, so remove the type casting here. Part-of: --- subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.cpp b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.cpp index 0c93c455ea..415555b043 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.cpp +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.cpp @@ -817,8 +817,7 @@ static void gst_nv_h264_dec_picture_params_from_pps (GstNvH264Dec * self, const GstH264PPS * pps, CUVIDH264PICPARAMS * params) { - params->second_chroma_qp_index_offset = - (gint8) pps->second_chroma_qp_index_offset; + params->second_chroma_qp_index_offset = pps->second_chroma_qp_index_offset; #define COPY_FIELD(f) \ (params)->f = (pps)->f