mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
mostly trivial windows fixes for last several commits - anthm pthread_self in mod_dptools is not in scope for windows? commented out.
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
*/
|
||||
|
||||
#include "switch.h"
|
||||
#ifndef WIN32
|
||||
#include "stfu.h"
|
||||
#else
|
||||
#include "../../../libs/stfu/stfu.h"
|
||||
#endif
|
||||
#include "SKP_Silk_SDK_API.h"
|
||||
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_silk_load);
|
||||
@@ -331,6 +335,7 @@ static switch_status_t switch_silk_decode(switch_codec_t *codec,
|
||||
SKP_int16 reclen;
|
||||
int32_t found_frame;
|
||||
switch_bool_t did_lbrr = SWITCH_FALSE;
|
||||
int i;
|
||||
|
||||
*decoded_data_len = 0;
|
||||
|
||||
@@ -339,7 +344,7 @@ static switch_status_t switch_silk_decode(switch_codec_t *codec,
|
||||
jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO);
|
||||
}
|
||||
if (jb && codec && codec->cur_frame) {
|
||||
for (int i = 1; i <= MAX_LBRR_DELAY; i++) {
|
||||
for (i = 1; i <= MAX_LBRR_DELAY; i++) {
|
||||
found_frame = stfu_n_copy_next_frame(jb, codec->cur_frame->timestamp, codec->cur_frame->seq, i, &next_frame);
|
||||
if (found_frame) {
|
||||
SKP_Silk_SDK_search_for_LBRR(next_frame.data, next_frame.dlen, i, (SKP_uint8*) &recbuff, &reclen);
|
||||
|
Reference in New Issue
Block a user