[asterisk-commits] rizzo: trunk r77023 - /trunk/main/rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 25 04:45:16 CDT 2007


Author: rizzo
Date: Wed Jul 25 04:45:15 2007
New Revision: 77023

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77023
Log:
Merged revisions 77022 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77022 | rizzo | 2007-07-25 11:34:01 +0200 (Wed, 25 Jul 2007) | 3 lines

set the sequence number in a frame for all frame types


........

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=77023&r1=77022&r2=77023
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Wed Jul 25 04:45:15 2007
@@ -1580,6 +1580,7 @@
 	rtp->f.datalen = res - hdrlen;
 	rtp->f.data = rtp->rawdata + hdrlen + AST_FRIENDLY_OFFSET;
 	rtp->f.offset = hdrlen + AST_FRIENDLY_OFFSET;
+	rtp->f.seqno = seqno;
 	if (rtp->f.subclass < AST_FORMAT_MAX_AUDIO) {
 		rtp->f.samples = ast_codec_get_samples(&rtp->f);
 		if (rtp->f.subclass == AST_FORMAT_SLINEAR) 
@@ -1589,7 +1590,6 @@
 		rtp->f.has_timing_info = 1;
 		rtp->f.ts = timestamp / 8;
 		rtp->f.len = rtp->f.samples / 8;
-		rtp->f.seqno = seqno;
 	} else if(rtp->f.subclass < AST_FORMAT_MAX_VIDEO) {
 		/* Video -- samples is # of samples vs. 90000 */
 		if (!rtp->lastividtimestamp)




More information about the asterisk-commits mailing list