mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
FS-8130 add support for timestamp based counting for jitter buffer in audio mode
This commit is contained in:
@@ -597,7 +597,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec,
|
||||
frame.data = buf;
|
||||
frame.buflen = sizeof(buf);
|
||||
|
||||
if (switch_jb_peek_frame(jb, codec->cur_frame->seq, 1, &frame)) {
|
||||
if (switch_jb_peek_frame(jb, codec->cur_frame->timestamp, 0, 1, &frame)) {
|
||||
got_frame = 1;
|
||||
fec = 1;
|
||||
encoded_data = frame.data;
|
||||
|
@@ -347,7 +347,7 @@ static switch_status_t switch_silk_decode(switch_codec_t *codec,
|
||||
frame.buflen = sizeof(buf);
|
||||
|
||||
for (i = 1; i <= MAX_LBRR_DELAY; i++) {
|
||||
if (switch_jb_peek_frame(jb, codec->cur_frame->seq, (uint16_t)i, &frame)) {
|
||||
if (switch_jb_peek_frame(jb, codec->cur_frame->timestamp, 0, (uint16_t)i, &frame)) {
|
||||
SKP_Silk_SDK_search_for_LBRR(frame.data, (const int)frame.datalen, i, (SKP_uint8*) &context->recbuff, &context->reclen);
|
||||
|
||||
if (context->reclen) {
|
||||
|
Reference in New Issue
Block a user