mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
lavc/libvpxenc: Avoid vp8 transparency encoding with auto-alt-ref.
Fixes ticket #5815.
This commit is contained in:
parent
3ea28f3f79
commit
44bcb636c1
@ -631,6 +631,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
if (ctx->tune >= 0)
|
||||
codecctl_int(avctx, VP8E_SET_TUNING, ctx->tune);
|
||||
|
||||
if (ctx->auto_alt_ref && ctx->is_alpha && avctx->codec_id == AV_CODEC_ID_VP8) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Transparency encoding with auto_alt_ref does not work\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
if (CONFIG_LIBVPX_VP8_ENCODER && avctx->codec_id == AV_CODEC_ID_VP8) {
|
||||
#if FF_API_PRIVATE_OPT
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
|
Loading…
Reference in New Issue
Block a user