mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Add support for using a jitterbuffer for RTP on bridged calls. This includes
a new implementation of a fixed size jitterbuffer, as well as support for the existing adaptive jitterbuffer implementation. (issue #3854, Slav Klenov) Thank you very much to Slav Klenov of Securax and all of the people involved in the testing of this feature for all of your hard work! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
13
frame.c
13
frame.c
@@ -316,6 +316,13 @@ struct ast_frame *ast_frisolate(struct ast_frame *fr)
|
||||
out->samples = fr->samples;
|
||||
out->offset = fr->offset;
|
||||
out->data = fr->data;
|
||||
/* Copy the timing data */
|
||||
out->has_timing_info = fr->has_timing_info;
|
||||
if (fr->has_timing_info) {
|
||||
out->ts = fr->ts;
|
||||
out->len = fr->len;
|
||||
out->seqno = fr->seqno;
|
||||
}
|
||||
} else
|
||||
out = fr;
|
||||
|
||||
@@ -380,6 +387,12 @@ struct ast_frame *ast_frdup(struct ast_frame *f)
|
||||
out->prev = NULL;
|
||||
out->next = NULL;
|
||||
memcpy(out->data, f->data, out->datalen);
|
||||
out->has_timing_info = f->has_timing_info;
|
||||
if (f->has_timing_info) {
|
||||
out->ts = f->ts;
|
||||
out->len = f->len;
|
||||
out->seqno = f->seqno;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user