summaryrefslogtreecommitdiff
path: root/toxav/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/codec.c')
-rw-r--r--toxav/codec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index 71d24e87..7b76929c 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -307,6 +307,13 @@ static int init_audio_encoder(CSSession *cs)
307 LOGGER_ERROR("Error while setting encoder ctl: %s", opus_strerror(rc)); 307 LOGGER_ERROR("Error while setting encoder ctl: %s", opus_strerror(rc));
308 return -1; 308 return -1;
309 } 309 }
310
311 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_INBAND_FEC(1));
312
313 if ( rc != OPUS_OK ) {
314 LOGGER_ERROR("Error while setting encoder ctl: %s", opus_strerror(rc));
315 return -1;
316 }
310 317
311 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10)); 318 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10));
312 319