The branch, master has been updated
via d87210745e09f6d55a7e43f70bf9d8f81b5f739a (commit)
from 4691c5623854760b1327a9fac8ba8c51e7c0d4d2 (commit)
- Log -----------------------------------------------------------------
commit d87210745e09f6d55a7e43f70bf9d8f81b5f739a
Author: Cameron Gutman <[email protected]>
AuthorDate: Fri Sep 5 23:42:52 2025 -0500
Commit: Zhao Zhili <[email protected]>
CommitDate: Wed Sep 10 11:55:18 2025 +0000
avcodec/videotoolboxenc: allow low latency RC with HEVC
It is supported only for H.264 on Intel Macs, but it can be used with
both H.264 and HEVC on Apple Silicon.
Signed-off-by: Cameron Gutman <[email protected]>
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index e423da6933..f0d3a15897 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -1709,7 +1709,8 @@ static int vtenc_configure_encoder(AVCodecContext *avctx)
#endif
// low-latency mode: eliminate frame reordering, follow a one-in-one-out
encoding mode
- if ((avctx->flags & AV_CODEC_FLAG_LOW_DELAY) && avctx->codec_id ==
AV_CODEC_ID_H264) {
+ if ((avctx->flags & AV_CODEC_FLAG_LOW_DELAY) &&
+ ((avctx->codec_id == AV_CODEC_ID_H264) || (TARGET_CPU_ARM64 &&
avctx->codec_id == AV_CODEC_ID_HEVC))) {
CFDictionarySetValue(enc_info,
compat_keys.kVTVideoEncoderSpecification_EnableLowLatencyRateControl,
kCFBooleanTrue);
-----------------------------------------------------------------------
Summary of changes:
libavcodec/videotoolboxenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]