diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-25 09:45:15 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-25 09:45:15 +0000 |
commit | dd13ba7f29e99fc82ae34e6620a9b8ba5964e510 (patch) | |
tree | 6a76f93f3d0707757d4638529c68ffb8bb7b75ed /main | |
parent | 60ed9402e37381e7dc0e9e9a66c3d435a6f5f4c6 (diff) |
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
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77023 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c index 8aa86a613..7774f43ea 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -1580,6 +1580,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) @@ -1589,7 +1590,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 if(rtp->f.subclass < AST_FORMAT_MAX_VIDEO) { /* Video -- samples is # of samples vs. 90000 */ if (!rtp->lastividtimestamp) |