mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 03:13:08 +08:00
lavc: make rc_buffer_aggressivity/rc_initial_cplx into private options of mpegvideo encoders
This commit is contained in:
@@ -830,6 +830,10 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
|
||||
s->rc_qmod_amp = avctx->rc_qmod_amp;
|
||||
if (avctx->rc_qmod_freq)
|
||||
s->rc_qmod_freq = avctx->rc_qmod_freq;
|
||||
if (avctx->rc_buffer_aggressivity != 1.0)
|
||||
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->rc_eq) {
|
||||
av_freep(&s->rc_eq);
|
||||
|
||||
Reference in New Issue
Block a user