mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
FS-8130 code error
This commit is contained in:
parent
882e6feaf2
commit
d57ab43f32
@ -585,11 +585,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec,
|
|||||||
|
|
||||||
encoded_data = NULL;
|
encoded_data = NULL;
|
||||||
|
|
||||||
if (opus_prefs.use_jb_lookahead || context->use_jb_lookahead) {
|
if ((opus_prefs.use_jb_lookahead || context->use_jb_lookahead) && context->codec_settings.useinbandfec && session) {
|
||||||
fec = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!fec && context->codec_settings.useinbandfec && session) {
|
|
||||||
if (opus_packet_get_bandwidth(codec->cur_frame->data) != OPUS_BANDWIDTH_FULLBAND &&
|
if (opus_packet_get_bandwidth(codec->cur_frame->data) != OPUS_BANDWIDTH_FULLBAND &&
|
||||||
codec->cur_frame && (jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO))) {
|
codec->cur_frame && (jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO))) {
|
||||||
switch_frame_t frame = { 0 };
|
switch_frame_t frame = { 0 };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user