diff options
Diffstat (limited to 'toxav')
-rw-r--r-- | toxav/codec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxav/codec.c b/toxav/codec.c index 9f705db4..81bbede6 100644 --- a/toxav/codec.c +++ b/toxav/codec.c | |||
@@ -308,6 +308,7 @@ static int init_audio_encoder(CSSession *cs) | |||
308 | return -1; | 308 | return -1; |
309 | } | 309 | } |
310 | 310 | ||
311 | /* Enable in-band forward error correction in codec */ | ||
311 | rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_INBAND_FEC(1)); | 312 | rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_INBAND_FEC(1)); |
312 | 313 | ||
313 | if ( rc != OPUS_OK ) { | 314 | if ( rc != OPUS_OK ) { |
@@ -323,6 +324,7 @@ static int init_audio_encoder(CSSession *cs) | |||
323 | return -1; | 324 | return -1; |
324 | } | 325 | } |
325 | 326 | ||
327 | /* Set algorithm to the highest complexity, maximizing compression */ | ||
326 | rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10)); | 328 | rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10)); |
327 | 329 | ||
328 | if ( rc != OPUS_OK ) { | 330 | if ( rc != OPUS_OK ) { |