Merge pull request #982 from italorossi/bugfix/opus-donot-drop-call-corrupted-stream
[mod_opus] Do not hangup call on decode error - fix 86a5ee3509
This commit is contained in:
commit
39fc5d4123
|
@ -914,7 +914,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec,
|
||||||
if (samples < 0) {
|
if (samples < 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error: %s fs:%u plc:%s!\n",
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error: %s fs:%u plc:%s!\n",
|
||||||
opus_strerror(samples), frame_size, plc ? "true" : "false");
|
opus_strerror(samples), frame_size, plc ? "true" : "false");
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_NOOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
*decoded_data_len = samples * 2 * (!context->codec_settings.sprop_stereo ? codec->implementation->number_of_channels : 2);
|
*decoded_data_len = samples * 2 * (!context->codec_settings.sprop_stereo ? codec->implementation->number_of_channels : 2);
|
||||||
|
|
Loading…
Reference in New Issue