[asterisk-commits] branch oej/rtcp r16773 - /team/oej/rtcp/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Mar 31 12:30:19 MST 2006


Author: oej
Date: Fri Mar 31 13:30:18 2006
New Revision: 16773

URL: http://svn.digium.com/view/asterisk?rev=16773&view=rev
Log:
Fix error calculation

Modified:
    team/oej/rtcp/rtp.c

Modified: team/oej/rtcp/rtp.c
URL: http://svn.digium.com/view/asterisk/team/oej/rtcp/rtp.c?rev=16773&r1=16772&r2=16773&view=diff
==============================================================================
--- team/oej/rtcp/rtp.c (original)
+++ team/oej/rtcp/rtp.c Fri Mar 31 13:30:18 2006
@@ -477,7 +477,7 @@
 
 	len = sizeof(sin);
 	
-	res = recvfrom(rtp->rtcp->s, rtcpdata + AST_FRIENDLY_OFFSET, sizeof(rtcpdata) - AST_FRIENDLY_OFFSET,
+	res = recvfrom(rtp->rtcp->s, rtcpdata + AST_FRIENDLY_OFFSET, sizeof(rtcpdata) - sizeof(unsigned int) * AST_FRIENDLY_OFFSET,
 					0, (struct sockaddr *)&sin, &len);
 	rtcpheader = (unsigned int *)(rtcpdata + AST_FRIENDLY_OFFSET);
 	



More information about the asterisk-commits mailing list