diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-09-16 15:21:09 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-09-17 11:42:23 +0300 |
commit | 44bcb636c1a7052059330c3edbd900246e15ae60 (patch) | |
tree | 47af8d2dd15b4de4d1d2198b04b6a66caac26f3f /libavcodec/libvpxenc.c | |
parent | 3ea28f3f79edaf80b2ef8eb4ae1977ae883af872 (diff) |
lavc/libvpxenc: Avoid vp8 transparency encoding with auto-alt-ref.
Fixes ticket #5815.
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r-- | libavcodec/libvpxenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index f3cff812bb..2db87f7f2a 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -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 |