mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-01 18:09:41 +00:00
Timestamp fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2148,9 +2148,10 @@ static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned in
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lastsent = pvt->lastsent;
|
||||||
|
|
||||||
/* Calculate actual timestamp */
|
/* Calculate actual timestamp */
|
||||||
fts = calc_timestamp(pvt, ts);
|
fts = calc_timestamp(pvt, ts);
|
||||||
lastsent = pvt->lastsent;
|
|
||||||
|
|
||||||
if ((pvt->trunk || ((fts & 0xFFFF0000L) == (lastsent & 0xFFFF0000L)))
|
if ((pvt->trunk || ((fts & 0xFFFF0000L) == (lastsent & 0xFFFF0000L)))
|
||||||
/* High two bits are the same on timestamp, or sending on a trunk */ &&
|
/* High two bits are the same on timestamp, or sending on a trunk */ &&
|
||||||
@@ -3696,7 +3697,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
|
|||||||
/* Retrieve the type and subclass */
|
/* Retrieve the type and subclass */
|
||||||
f.frametype = fh->type;
|
f.frametype = fh->type;
|
||||||
if (f.frametype == AST_FRAME_VIDEO) {
|
if (f.frametype == AST_FRAME_VIDEO) {
|
||||||
f.subclass = uncompress_subclass(fh->csub & ~0x40) | ((fh->csub & 0x40) >> 6);
|
f.subclass = uncompress_subclass(fh->csub & ~0x40) | ((fh->csub >> 6) & 0x1);
|
||||||
} else {
|
} else {
|
||||||
f.subclass = uncompress_subclass(fh->csub);
|
f.subclass = uncompress_subclass(fh->csub);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user