rtcpbuffer: fix left shift override
authorEdward Hervey <edward@centricular.com>
Sat, 4 Nov 2017 15:56:10 +0000 (16:56 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 4 Nov 2017 15:56:10 +0000 (16:56 +0100)
Needs to be cast to the target type

gst-libs/gst/rtp/gstrtcpbuffer.c

index 93fb8bb..c09079b 100644 (file)
@@ -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;