From c94077d15e8423d5f9536b8089192169b9bdce75 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Wed, 12 Jun 2019 14:37:41 +0300 Subject: [PATCH] remove hardcoded value --- src/encoderstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoderstate.c b/src/encoderstate.c index 97b6d7e0..ed3526c8 100644 --- a/src/encoderstate.c +++ b/src/encoderstate.c @@ -811,7 +811,7 @@ static void encoder_state_encode_leaf(encoder_state_t * const state) ref_state->frame->slicetype == KVZ_SLICE_I && ref_state->frame->num != 0){ - while (ref_state->frame->poc != state->frame->poc - 8){ + while (ref_state->frame->poc != state->frame->poc - state->encoder_control->cfg.gop_len){ ref_state = ref_state->previous_encoder_state; } kvz_threadqueue_job_dep_add(job[0], ref_state->tile->wf_jobs[dep_lcu->id]);