Skip to content
Snippets Groups Projects
Commit 1541e97a authored by Mark Spencer's avatar Mark Spencer
Browse files

Make sure RTP timestamps are accurate on playback

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent f406fe76
No related branches found
No related tags found
No related merge requests found
......@@ -158,8 +158,11 @@ static struct ast_frame *h263_read(struct ast_filestream *s, int *whennext)
s->fr.samples = s->lastts;
s->fr.datalen = len;
s->fr.subclass |= mark;
s->fr.delivery.tv_sec = 0;
s->fr.delivery.tv_usec = 0;
if ((res = read(s->fd, &ts, sizeof(ts))) == sizeof(ts)) {
s->lastts = *whennext = ntohl(ts) * 4/45;
s->lastts = ntohl(ts);
*whennext = s->lastts * 4/45;
} else
*whennext = 0;
return &s->fr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment