diff options
author | Alex Converse <alex.converse@gmail.com> | 2016-12-12 12:07:05 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2016-12-13 10:43:57 -0800 |
commit | bf15981b126256c403a1529df5172dce761295d4 (patch) | |
tree | 62d5d29c2f578d477aeda62c5633a155bdf4efd5 /libavcodec | |
parent | 6a8c0d83572deabc4cd1920b6d71cc65a37acc57 (diff) | |
download | ffmpeg-bf15981b126256c403a1529df5172dce761295d4.tar.gz |
libvpxenc: Don't spam level errors for VP8 encodes
Fixes "Failed to set VP9E_GET_LEVEL codec control: Codec does not
implement requested capability" log messages on VP8 encodes.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libvpxenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 13251996c5..de0d0b6bcb 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -293,7 +293,8 @@ static av_cold int vpx_free(AVCodecContext *avctx) VPxContext *ctx = avctx->priv_data; #if VPX_ENCODER_ABI_VERSION >= 12 - if (ctx->level >= 0 && !(avctx->flags & AV_CODEC_FLAG_PASS1)) { + if (avctx->codec_id == AV_CODEC_ID_VP9 && ctx->level >= 0 && + !(avctx->flags & AV_CODEC_FLAG_PASS1)) { int level_out = 0; if (!codecctl_intp(avctx, VP9E_GET_LEVEL, &level_out)) av_log(avctx, AV_LOG_INFO, "Encoded level %.1f\n", level_out * 0.1); |