diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 13:51:16 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-18 05:29:14 +0200 |
commit | 530c1441fd1426b6a4bb33485ff3226e1ae0ad45 (patch) | |
tree | b3624b9542061d67a169115b5d912b2995f13e9a /libavcodec/mpegvideo_enc.c | |
parent | 15ec053c4c0b198a2e93eb8e60c8f41e091e0c40 (diff) | |
download | ffmpeg-530c1441fd1426b6a4bb33485ff3226e1ae0ad45.tar.gz |
lavc: make lmax/lmin into private options of mpegvideo encoders
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 6bb4eeb65a..bb612d69bb 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -834,6 +834,10 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) s->rc_buffer_aggressivity = avctx->rc_buffer_aggressivity; if (avctx->rc_initial_cplx != 0.0) s->rc_initial_cplx = avctx->rc_initial_cplx; + if (avctx->lmin) + s->lmin = avctx->lmin; + if (avctx->lmax) + s->lmax = avctx->lmax; if (avctx->rc_eq) { av_freep(&s->rc_eq); @@ -1621,7 +1625,7 @@ vbv_retry: int max_size = rcc->buffer_index * avctx->rc_max_available_vbv_use; if (put_bits_count(&s->pb) > max_size && - s->lambda < s->avctx->lmax) { + s->lambda < s->lmax) { s->next_lambda = FFMAX(s->lambda + 1, s->lambda * (s->qscale + 1) / s->qscale); if (s->adaptive_quant) { |