diff options
author | Rick Kern <kernrj@gmail.com> | 2023-05-20 11:39:50 -0400 |
---|---|---|
committer | Rick Kern <kernrj@gmail.com> | 2023-05-20 11:42:12 -0400 |
commit | 247e977953b1fb43c145d21074a7238a05220d4d (patch) | |
tree | ebea504962a53f285d915e34bdd51f77bb47ffd7 | |
parent | 902c949d309e3ef304775d1970ea77b04904f2bc (diff) | |
download | ffmpeg-247e977953b1fb43c145d21074a7238a05220d4d.tar.gz |
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@gmail.com>
-rw-r--r-- | libavcodec/videotoolboxenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); + } } } |