summaryrefslogtreecommitdiff
path: root/main/rtp.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-07-26 05:35:42 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-07-26 05:35:42 +0000
commit5a96f8aa7248ecbb853990fa84d72a12ea85af96 (patch)
tree4337591720ce74e7bd9528f864e065602bad9c06 /main/rtp.c
parentf1aadc8161913d72c72023685f1e831f615a6007 (diff)
document how the RTP marker bit is passed for video frames,
and why this does not overwrite useful information. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 1bdb1b92c..f481f1e91 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1598,6 +1598,11 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
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 {