summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index 99a20fc0e..48d6f85cc 100755
--- a/rtp.c
+++ b/rtp.c
@@ -460,6 +460,8 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
}
} else {
/* Video -- samples is # of samples vs. 90000 */
+ if (!rtp->lastividtimestamp)
+ rtp->lastividtimestamp = timestamp;
rtp->f.samples = timestamp - rtp->lastividtimestamp;
rtp->lastividtimestamp = timestamp;
if (mark)