Fix application of aq offset
@@ -334,10 +334,8 @@ void kvz_set_lcu_lambda_and_qp(encoder_state_t * const state,
};
int id = lcu.x + lcu.y * state->tile->frame->width_in_lcu;
int aq_offset = (int)state->frame->aq_offsets[id]; // TODO: Number stored in aq_offsets may need rounding
- state->qp = CLIP_TO_QP(state->frame->QP + aq_offset);
+ state->qp = CLIP_TO_QP(state->qp + aq_offset);
state->lambda = qp_to_lamba(state, state->qp);
state->lambda_sqrt = sqrt(state->lambda);
-
-
}
}
