Skip to content

Commit

Permalink
FS-11945: [mod_opus] don't hangup call on decoder error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos Oancea authored and andywolk committed Jul 23, 2019
1 parent aa6844a commit 86a5ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/codecs/mod_opus/mod_opus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86a5ee3

Please sign in to comment.