diff options
author | Jan Ekström <jeebjp@gmail.com> | 2022-05-09 21:21:33 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2022-05-09 23:08:42 +0300 |
commit | 70887d44ffa31b95704b85531fc53ddd4d9aab14 (patch) | |
tree | 088d7344dc9f9b81f7f151545334023a3ab53cb6 /libavcodec/libsvtav1.c | |
parent | 06f1e872814c34f5b9ccbe940e690d2e3301597d (diff) | |
download | ffmpeg-70887d44ffa31b95704b85531fc53ddd4d9aab14.tar.gz |
avcodec/libsvtav1: update avctx bit rate according to RC mode
This way we can filter out the default value for this member, which
is nonzero. Bases on the current affairs that bit rate based rate
control is nonzero in SVT-AV1.
Diffstat (limited to 'libavcodec/libsvtav1.c')
-rw-r--r-- | libavcodec/libsvtav1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index b4112004ad..2c4ddd4641 100644 --- a/libavcodec/libsvtav1.c +++ b/libavcodec/libsvtav1.c @@ -297,7 +297,8 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param, param->profile = FF_PROFILE_AV1_HIGH; } - avctx->bit_rate = param->target_bit_rate; + avctx->bit_rate = param->rate_control_mode > 0 ? + param->target_bit_rate : 0; return 0; } |