[ffmpeg] branch master updated. 126671e730 avcodec/mfenc: add AVLowLatencyMode support
The branch, master has been updated via 126671e73065e29c9582e47bc74774af2200fc8f (commit) from f2414fb1aa0dcc620ed043201d329b3fe43a4690 (commit) - Log ----------------------------------------------------------------- commit 126671e73065e29c9582e47bc74774af2200fc8f Author: Cameron Gutman <aicommander@gmail.com> AuthorDate: Sun Aug 31 16:05:15 2025 -0500 Commit: James Almer <jamrial@gmail.com> CommitDate: Mon Sep 1 12:40:36 2025 +0000 avcodec/mfenc: add AVLowLatencyMode support Set CODECAPI_AVLowLatencyMode when AV_CODEC_FLAG_LOW_DELAY is enabled on the AVCodecContext. AVLowLatencyMode can acheive lower latency encoding that may not be accessible using eAVScenarioInfo options alone. Signed-off-by: Cameron Gutman <aicommander@gmail.com> diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c index 6f79386404..541f7fb961 100644 --- a/libavcodec/mfenc.c +++ b/libavcodec/mfenc.c @@ -876,6 +876,9 @@ static int mf_encv_output_adjust(AVCodecContext *avctx, IMFMediaType *type) if (c->opt_enc_scenario >= 0) ICodecAPI_SetValue(c->codec_api, &ff_CODECAPI_AVScenarioInfo, FF_VAL_VT_UI4(c->opt_enc_scenario)); + + if (avctx->flags & AV_CODEC_FLAG_LOW_DELAY) + ICodecAPI_SetValue(c->codec_api, &ff_CODECAPI_AVLowLatencyMode, FF_VAL_VT_UI4(1)); } return 0; ----------------------------------------------------------------------- Summary of changes: libavcodec/mfenc.c | 3 +++ 1 file changed, 3 insertions(+) hooks/post-receive --
participants (1)
-
ffmpeg-git@ffmpeg.org