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:
Ari Lemmetti 2015-08-12 18:12:04 +03:00
parent bb9b5d0974
commit 4dcc0d876d

View file

@ -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);
}