[FFmpeg-cvslog] lavc/videotoolboxenc: warn when alpha quality not set

Rick Kern git at videolan.org
Sat May 20 18:48:35 EEST 2023


ffmpeg | branch: master | Rick Kern <kernrj at gmail.com> | Sat May 20 11:39:50 2023 -0400| [247e977953b1fb43c145d21074a7238a05220d4d] | committer: Rick Kern

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 <kernrj at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=247e977953b1fb43c145d21074a7238a05220d4d
---

 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);
+            }
         }
     }
 



More information about the ffmpeg-cvslog mailing list