[FFmpeg-cvslog] libvpx: Do not set vp8 only parameters when encoding in vp9
Luca Barbato
git at videolan.org
Sun Jun 21 21:16:38 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Jun 16 03:48:00 2015 +0200| [05bf3f54e6078716f6267df530bf1d474ca3d606] | committer: Luca Barbato
libvpx: Do not set vp8 only parameters when encoding in vp9
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05bf3f54e6078716f6267df530bf1d474ca3d606
---
libavcodec/libvpxenc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 4164769..0f4bd61 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -346,8 +346,11 @@ static av_cold int vpx_init(AVCodecContext *avctx,
codecctl_int(avctx, VP8E_SET_ARNR_STRENGTH, ctx->arnr_strength);
if (ctx->arnr_type >= 0)
codecctl_int(avctx, VP8E_SET_ARNR_TYPE, ctx->arnr_type);
- codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, avctx->noise_reduction);
- codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices));
+
+ if (CONFIG_LIBVPX_VP8_ENCODER && iface == &vpx_codec_vp8_cx_algo) {
+ codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, avctx->noise_reduction);
+ codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices));
+ }
#if FF_API_MPV_OPT
FF_DISABLE_DEPRECATION_WARNINGS
if (avctx->mb_threshold) {
More information about the ffmpeg-cvslog
mailing list