From 247e977953b1fb43c145d21074a7238a05220d4d Mon Sep 17 00:00:00 2001 From: Rick Kern Date: Sat, 20 May 2023 11:39:50 -0400 Subject: [PATCH] lavc/videotoolboxenc: warn when alpha quality not set Added a warn log when alpha quality cannot be set, but continue encoding. Signed-off-by: Rick Kern --- libavcodec/videotoolboxenc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index e93d45e151..b017c90c36 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -1262,6 +1262,13 @@ static int vtenc_create_encoder(AVCodecContext *avctx, compat_keys.kVTCompressionPropertyKey_TargetQualityForAlpha, alpha_quality_num); CFRelease(alpha_quality_num); + + if (status) { + av_log(avctx, + AV_LOG_ERROR, + "Error setting alpha quality: %d\n", + status); + } } }