@@ -2174,19 +2174,19 @@ static const char *libopus_encoder_init(encoder_t *enc, const str *extra_opts) {
2174
2174
err = opus_encoder_ctl (enc -> opus , OPUS_SET_VBR (opts .vbr ));
2175
2175
if (err != OPUS_OK )
2176
2176
ilog (LOG_WARN | LOG_FLAG_LIMIT , "Failed to set Opus VBR to %i': %s" ,
2177
- opts .complexity , opus_strerror (err ));
2177
+ opts .vbr , opus_strerror (err ));
2178
2178
err = opus_encoder_ctl (enc -> opus , OPUS_SET_VBR_CONSTRAINT (opts .vbr_constraint ));
2179
2179
if (err != OPUS_OK )
2180
2180
ilog (LOG_WARN | LOG_FLAG_LIMIT , "Failed to set Opus VBR constraint to %i': %s" ,
2181
- opts .complexity , opus_strerror (err ));
2181
+ opts .vbr_constraint , opus_strerror (err ));
2182
2182
err = opus_encoder_ctl (enc -> opus , OPUS_SET_PACKET_LOSS_PERC (opts .pl ));
2183
2183
if (err != OPUS_OK )
2184
2184
ilog (LOG_WARN | LOG_FLAG_LIMIT , "Failed to set Opus PL%% to %i': %s" ,
2185
- opts .complexity , opus_strerror (err ));
2185
+ opts .pl , opus_strerror (err ));
2186
2186
err = opus_encoder_ctl (enc -> opus , OPUS_SET_INBAND_FEC (enc -> format_options .opus .fec_send >= 0 ));
2187
2187
if (err != OPUS_OK )
2188
2188
ilog (LOG_WARN | LOG_FLAG_LIMIT , "Failed to set Opus FEC to %i': %s" ,
2189
- opts . complexity , opus_strerror (err ));
2189
+ enc -> format_options . opus . fec_send >= 0 , opus_strerror (err ));
2190
2190
2191
2191
return NULL ;
2192
2192
}
0 commit comments