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>
pull/389/head
Rick Kern 2 years ago
parent 902c949d30
commit 247e977953
  1. 7
      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);
}
}
}

Loading…
Cancel
Save