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:
Andrey Volk 2020-12-16 22:54:04 +04:00 committed by GitHub
commit 39fc5d4123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);