mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 12:44:07 +00:00
Fix rate control when --owf=auto (default)
Value in cfg stays -1 if auto selection is used. Use value in encoder instead.
This commit is contained in:
parent
bb9b5d0974
commit
4dcc0d876d
|
@ -118,7 +118,7 @@ double select_picture_lambda(encoder_state_t * const state)
|
|||
|
||||
assert(encoder->cfg->target_bitrate > 0);
|
||||
|
||||
if (state->global->frame > encoder->cfg->owf) {
|
||||
if (state->global->frame > encoder->owf) {
|
||||
// At least one frame has been written.
|
||||
update_rc_parameters(state);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue