Skip to content
Snippets Groups Projects
Commit f481aeaa authored by Eloi Bail's avatar Eloi Bail Committed by Gerrit Code Review
Browse files

daemon: set rc_buffer_size for mpeg4 enc

Refs #68821

Change-Id: Id218b83114ae93d197f7d57bdd14a36c14399fac
parent 6fe0567d
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,8 @@ MediaEncoder::openOutput(const char *filename, ...@@ -140,6 +140,8 @@ MediaEncoder::openOutput(const char *filename,
encoderCtx_->qmin = 4; encoderCtx_->qmin = 4;
encoderCtx_->qmax = 56; encoderCtx_->qmax = 56;
encoderCtx_->gop_size = 999999; encoderCtx_->gop_size = 999999;
} else if (args.codec->systemCodecInfo.avcodecId == AV_CODEC_ID_MPEG4) {
encoderCtx_->rc_buffer_size = encoderCtx_->bit_rate;
} }
int ret; int ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment