diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-04 16:56:10 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:02:03 +0100 |
commit | 3266de8d8d07b2447cfc87e00c3bffc1e775bd1f (patch) | |
tree | 742e110d2aecfac5a01de6b2b91129afee32eeae | |
parent | 5c102dcb0956627bde2d05723cb105fdcc601d23 (diff) | |
download | gstreamer-plugins-base-3266de8d8d07b2447cfc87e00c3bffc1e775bd1f.tar.gz |
rtcpbuffer: fix left shift override
Needs to be cast to the target type
-rw-r--r-- | gst-libs/gst/rtp/gstrtcpbuffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index c9a3440bb..ea117e88c 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -990,7 +990,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; |