summaryrefslogtreecommitdiff
path: root/libavcodec/libvpxenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-10-23 17:06:05 -0300
committerJames Almer <jamrial@gmail.com>2017-10-23 17:08:32 -0300
commitbfab4308560c277d754c214210758a865fcc7348 (patch)
tree609493b886bed4b8a94bf89a6b8cad269224fb3b /libavcodec/libvpxenc.c
parentfb41bad7e051240017bc4cc79c50ea36ac12b96c (diff)
parent94eed68ace9f2416af8457fcbf142b175928c06b (diff)
Merge commit '94eed68ace9f2416af8457fcbf142b175928c06b'
* commit '94eed68ace9f2416af8457fcbf142b175928c06b': lavc: Drop deprecated options moved to private contexts Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 64a7459331..d720301cd1 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -581,15 +581,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
enccfg.rc_buf_initial_sz =
avctx->rc_initial_buffer_occupancy * 1000LL / avctx->bit_rate;
enccfg.rc_buf_optimal_sz = enccfg.rc_buf_sz * 5 / 6;
-#if FF_API_MPV_OPT
- FF_DISABLE_DEPRECATION_WARNINGS
- if (avctx->rc_buffer_aggressivity != 1.0) {
- av_log(avctx, AV_LOG_WARNING, "The rc_buffer_aggressivity option is "
- "deprecated, use the undershoot-pct private option instead.\n");
- enccfg.rc_undershoot_pct = lrint(avctx->rc_buffer_aggressivity * 100);
- }
- FF_ENABLE_DEPRECATION_WARNINGS
-#endif
if (ctx->rc_undershoot_pct >= 0)
enccfg.rc_undershoot_pct = ctx->rc_undershoot_pct;
if (ctx->rc_overshoot_pct >= 0)
@@ -688,15 +679,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, ctx->noise_sensitivity);
codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices));
}
-#if FF_API_MPV_OPT
- FF_DISABLE_DEPRECATION_WARNINGS
- if (avctx->mb_threshold) {
- av_log(avctx, AV_LOG_WARNING, "The mb_threshold option is deprecated, "
- "use the static-thresh private option instead.\n");
- ctx->static_thresh = avctx->mb_threshold;
- }
- FF_ENABLE_DEPRECATION_WARNINGS
-#endif
codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD, ctx->static_thresh);
if (ctx->crf >= 0)
codecctl_int(avctx, VP8E_SET_CQ_LEVEL, ctx->crf);