ffmpeg | branch: master | Carl Eugen Hoyos <ceho...@ag.or.at> | Fri Sep 16 14:21:09 2016 +0200| [44bcb636c1a7052059330c3edbd900246e15ae60] | committer: Carl Eugen Hoyos
lavc/libvpxenc: Avoid vp8 transparency encoding with auto-alt-ref. Fixes ticket #5815. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44bcb636c1a7052059330c3edbd900246e15ae60 --- libavcodec/libvpxenc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index f3cff81..2db87f7 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 _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog