Commit 3826c417 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix RTCP SR SDES length field - close #1541

parent 16402c26
......@@ -149,7 +149,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
while ((ptr - sdes) & 3) /* 32-bits padding */
*ptr++ = 0;
SetWBE (lenptr, ptr - sdes);
SetWBE (lenptr, (ptr - sdes - 1) >> 2);
rtcp->length = ptr - rtcp->payload;
return rtcp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment