Skip to content

Commit 86a5ee3

Browse files
Dragos Oanceaandywolk
authored andcommitted
FS-11945: [mod_opus] don't hangup call on decoder error.
1 parent aa6844a commit 86a5ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod/codecs/mod_opus/mod_opus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec,
914914
if (samples < 0) {
915915
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error: %s fs:%u plc:%s!\n",
916916
opus_strerror(samples), frame_size, plc ? "true" : "false");
917-
return SWITCH_STATUS_GENERR;
917+
return SWITCH_STATUS_FALSE;
918918
}
919919

920920
*decoded_data_len = samples * 2 * (!context->codec_settings.sprop_stereo ? codec->implementation->number_of_channels : 2);

0 commit comments

Comments
 (0)