diff --git a/lib/codeclib.c b/lib/codeclib.c index 9ce37c842..7f9382b86 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -1314,7 +1314,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 to %i: %s", enc->ptime, av_error(ret)); // XXX additional opus options