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>
This commit is contained in:
Rick Kern 2023-05-20 11:39:50 -04:00
parent 902c949d30
commit 247e977953
1 changed files with 7 additions and 0 deletions

View File

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