[vlc-devel] commit: Fix RTCP SR SDES length field - close #1541 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Mar 31 20:44:05 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon Mar 31 21:43:32 2008 +0300| [3826c4178f2a1d88122ae18bfdd2e9b73c98fa94]
Fix RTCP SR SDES length field - close #1541
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3826c4178f2a1d88122ae18bfdd2e9b73c98fa94
---
modules/stream_out/rtcp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/rtcp.c b/modules/stream_out/rtcp.c
index f0beee9..f9ead76 100644
--- a/modules/stream_out/rtcp.c
+++ b/modules/stream_out/rtcp.c
@@ -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;
More information about the vlc-devel
mailing list