Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
- index 163d12a..0d89c85 100644
- --- a/libavcodec/libvpxenc.c
- +++ b/libavcodec/libvpxenc.c
- @@ -125,6 +125,7 @@ static const char *const ctlidstr[] = {
- [VP9E_SET_TILE_ROWS] = "VP9E_SET_TILE_ROWS",
- [VP9E_SET_FRAME_PARALLEL_DECODING] = "VP9E_SET_FRAME_PARALLEL_DECODING",
- [VP9E_SET_AQ_MODE] = "VP9E_SET_AQ_MODE",
- + [VP9E_SET_NOISE_SENSITIVITY] = "VP9E_SET_NOISE_SENSITIVITY",
- #endif
- };
- @@ -440,7 +441,8 @@ 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);
- + if (avctx->codec_id == AV_CODEC_ID_VP8)
- + codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, avctx->noise_reduction);
- if (avctx->codec_id == AV_CODEC_ID_VP8)
- codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices));
- codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD, avctx->mb_threshold);
- @@ -451,6 +453,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
- #if CONFIG_LIBVPX_VP9_ENCODER
- if (avctx->codec_id == AV_CODEC_ID_VP9) {
- + codecctl_int(avctx, VP9E_SET_NOISE_SENSITIVITY, avctx->noise_reduction);
- if (ctx->lossless >= 0)
- codecctl_int(avctx, VP9E_SET_LOSSLESS, ctx->lossless);
- if (ctx->tile_columns >= 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement