FS-11945: [mod_opus] don't hangup call on decoder error.

This commit is contained in:
Dragos Oancea 2019-07-23 09:46:25 +00:00 committed by Andrey Volk
parent aa6844ae00
commit 86a5ee3509
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) {
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");
return SWITCH_STATUS_GENERR;
return SWITCH_STATUS_FALSE;
}
*decoded_data_len = samples * 2 * (!context->codec_settings.sprop_stereo ? codec->implementation->number_of_channels : 2);