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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 26 00:35:42 CDT 2007


Author: rizzo
Date: Thu Jul 26 00:35:42 2007
New Revision: 77248

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77248
Log:
document how the RTP marker bit is passed for video frames,
and why this does not overwrite useful information.


Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=77248&r1=77247&r2=77248
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Thu Jul 26 00:35:42 2007
@@ -1598,6 +1598,11 @@
 		rtp->lastividtimestamp = timestamp;
 		rtp->f.delivery.tv_sec = 0;
 		rtp->f.delivery.tv_usec = 0;
+		/* Pass the RTP marker bit as bit 0 in the subclass field.
+		 * This is ok because subclass is actually a bitmask, and
+		 * the low bits represent audio formats, that are not
+		 * involved here since we deal with video.
+		 */
 		if (mark)
 			rtp->f.subclass |= 0x1;
 	} else {




More information about the asterisk-commits mailing list