The branch, master has been updated
       via  126671e73065e29c9582e47bc74774af2200fc8f (commit)
      from  f2414fb1aa0dcc620ed043201d329b3fe43a4690 (commit)


- Log -----------------------------------------------------------------
commit 126671e73065e29c9582e47bc74774af2200fc8f
Author:     Cameron Gutman <[email protected]>
AuthorDate: Sun Aug 31 16:05:15 2025 -0500
Commit:     James Almer <[email protected]>
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 <[email protected]>

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

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to