diff --git a/lib/codeclib.c b/lib/codeclib.c index e17e7f2d4..a3ff50dad 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -1282,7 +1282,8 @@ static void opus_init(struct rtp_payload_type *pt) { static void opus_set_enc_options(encoder_t *enc, const str *fmtp) { int ret; if (enc->ptime) - if ((ret = av_opt_set_int(enc->u.avc.avcctx, "frame_duration", enc->ptime, 0))) + if ((ret = av_opt_set_int(enc->u.avc.avcctx, "frame_duration", enc->ptime, + AV_OPT_SEARCH_CHILDREN))) ilog(LOG_WARN, "Failed to set Opus frame_duration option (error code %i)", ret); // XXX additional opus options }