提交 86a5ee35 authored 作者: Dragos Oancea's avatar Dragos Oancea 提交者: Andrey Volk

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

上级 aa6844ae
...@@ -914,7 +914,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec, ...@@ -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_GENERR; return SWITCH_STATUS_FALSE;
} }
*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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论