diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-02-23 08:20:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-09 08:36:40 +0100 |
commit | 3b0f586f07bc58a9d97e3fd699a9aa29f7f4beea (patch) | |
tree | e3c9349ab32f086151739c9bbf2a37dec4a774da /libavcodec/mpegvideo_enc.c | |
parent | 0f24a3ca999a702f83af9307f9f47b6fdeb546a5 (diff) | |
download | ffmpeg-3b0f586f07bc58a9d97e3fd699a9aa29f7f4beea.tar.gz |
lavc: remove disabled FF_API_MPV_GLOBAL_OPTS cruft
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 96e2c73b71..f671460906 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -311,12 +311,6 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) s->flags2 = avctx->flags2; s->max_b_frames = avctx->max_b_frames; s->codec_id = avctx->codec->id; -#if FF_API_MPV_GLOBAL_OPTS - if (avctx->luma_elim_threshold) - s->luma_elim_threshold = avctx->luma_elim_threshold; - if (avctx->chroma_elim_threshold) - s->chroma_elim_threshold = avctx->chroma_elim_threshold; -#endif s->strict_std_compliance = avctx->strict_std_compliance; s->quarter_sample = (avctx->flags & CODEC_FLAG_QPEL) != 0; s->mpeg_quant = avctx->mpeg_quant; @@ -336,11 +330,6 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) /* Fixed QSCALE */ s->fixed_qscale = !!(avctx->flags & CODEC_FLAG_QSCALE); -#if FF_API_MPV_GLOBAL_OPTS - if (s->flags & CODEC_FLAG_QP_RD) - s->mpv_flags |= FF_MPV_FLAG_QP_RD; -#endif - s->adaptive_quant = (s->avctx->lumi_masking || s->avctx->dark_masking || s->avctx->temporal_cplx_masking || @@ -457,11 +446,6 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) return -1; } -#if FF_API_MPV_GLOBAL_OPTS - if (s->flags & CODEC_FLAG_CBP_RD) - s->mpv_flags |= FF_MPV_FLAG_CBP_RD; -#endif - if ((s->mpv_flags & FF_MPV_FLAG_CBP_RD) && !avctx->trellis) { av_log(avctx, AV_LOG_ERROR, "CBP RD needs trellis quant\n"); return -1; @@ -578,15 +562,6 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) } s->time_increment_bits = av_log2(s->avctx->time_base.den - 1) + 1; -#if FF_API_MPV_GLOBAL_OPTS - if (avctx->flags2 & CODEC_FLAG2_SKIP_RD) - s->mpv_flags |= FF_MPV_FLAG_SKIP_RD; - if (avctx->flags2 & CODEC_FLAG2_STRICT_GOP) - s->mpv_flags |= FF_MPV_FLAG_STRICT_GOP; - if (avctx->quantizer_noise_shaping) - s->quantizer_noise_shaping = avctx->quantizer_noise_shaping; -#endif - switch (avctx->codec->id) { case AV_CODEC_ID_MPEG1VIDEO: s->out_format = FMT_MPEG1; |