diff --git a/main/rtp.c b/main/rtp.c index 8aa86a6137..7774f43eaf 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)