aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-25 09:34:01 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-25 09:34:01 +0000
commit2b65e578932d4fbc7005bb07f756e3ac458a9bf6 (patch)
tree419a65e5513a6c6463988adde19882f647c5c181 /main/rtp.c
parenta0cd573b859bda5ceaaf521bf2235203b3c565f2 (diff)
set the sequence number in a frame for all frame types
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77022 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 83e2f4fcc..4e4bde623 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1295,6 +1295,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
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)
@@ -1304,7 +1305,6 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
rtp->f.has_timing_info = 1;
rtp->f.ts = timestamp / 8;
rtp->f.len = rtp->f.samples / 8;
- rtp->f.seqno = seqno;
} else {
/* Video -- samples is # of samples vs. 90000 */
if (!rtp->lastividtimestamp)