Skip to content
Snippets Groups Projects
Commit e51f6493 authored by Aline Gondim Santos's avatar Aline Gondim Santos Committed by Adrien Béraud
Browse files

media_encoder: set b_ref_mode to 0

GitLab: #842
Change-Id: I136477079a8de8a3eab6146bc4937b48179f70ec
parent c3e26021
No related branches found
No related tags found
No related merge requests found
...@@ -839,6 +839,7 @@ MediaEncoder::initCodec(AVMediaType mediaType, AVCodecID avcodecId, uint64_t br) ...@@ -839,6 +839,7 @@ MediaEncoder::initCodec(AVMediaType mediaType, AVCodecID avcodecId, uint64_t br)
encoderCtx->profile = FF_PROFILE_HEVC_MAIN; encoderCtx->profile = FF_PROFILE_HEVC_MAIN;
forcePresetX2645(encoderCtx); forcePresetX2645(encoderCtx);
initH265(encoderCtx, br); initH265(encoderCtx, br);
av_opt_set_int(encoderCtx, "b_ref_mode", 0, AV_OPT_SEARCH_CHILDREN);
} else if (avcodecId == AV_CODEC_ID_VP8) { } else if (avcodecId == AV_CODEC_ID_VP8) {
initVP8(encoderCtx, br); initVP8(encoderCtx, br);
} else if (avcodecId == AV_CODEC_ID_MPEG4) { } else if (avcodecId == AV_CODEC_ID_MPEG4) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment