Browse Source

correctly set frame_duration option for Opus

closes #779

Change-Id: I134734319b60d38b60f0e9e7779a5e5e433a79d8
(cherry picked from commit ca30ecaa3d)
changes/87/30587/1
Richard Fuchs 7 years ago
parent
commit
3ef6812277
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/codeclib.c

+ 2
- 1
lib/codeclib.c View File

@ -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
}


Loading…
Cancel
Save