From 9aa41aa35e904d5949dd128fbdfd9e01839b3aac Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 20 Feb 2023 10:56:27 -0500 Subject: [PATCH] h264bitwriter: Remove second_chroma_qp_index_offset cast That API pps->second_chroma_qp_index_offset has been fixed to reflect the sign of field in the spec. Part-of: --- .../gst-libs/gst/codecparsers/gsth264bitwriter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c index b4ae920af2..918e2f7fb0 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c @@ -578,7 +578,7 @@ _h264_bit_writer_pps (const GstH264PPS * pps, GstBitWriter * bw, } } - WRITE_SE_RANGE (bw, ((gint) pps->second_chroma_qp_index_offset), -12, 12); + WRITE_SE_RANGE (bw, pps->second_chroma_qp_index_offset, -12, 12); *space = TRUE; return TRUE;