From ae865ec1d1a4f6fc13a0e6bbf3ddac8bed4e884e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 4 Nov 2017 16:56:10 +0100 Subject: [PATCH] rtcpbuffer: fix left shift override Needs to be cast to the target type --- gst-libs/gst/rtp/gstrtcpbuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index 93fb8bb739..c09079b52e 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -993,7 +993,8 @@ gst_rtcp_packet_add_rb (GstRTCPPacket * packet, guint32 ssrc, GST_WRITE_UINT32_BE (data, ssrc); data += 4; - GST_WRITE_UINT32_BE (data, (fractionlost << 24) | (packetslost & 0xffffff)); + GST_WRITE_UINT32_BE (data, + ((guint32) fractionlost << 24) | (packetslost & 0xffffff)); data += 4; GST_WRITE_UINT32_BE (data, exthighestseq); data += 4;