diff --git a/src/encoderstate.c b/src/encoderstate.c index 45101673..55a157db 100644 --- a/src/encoderstate.c +++ b/src/encoderstate.c @@ -1135,8 +1135,8 @@ static void encoder_state_encode(encoder_state_t * const main_state) { if (sub_state->encoder_control->cfg.alf_type) { main_state->slice->alf = sub_state->slice->alf = main_state->parent->slice->alf; - main_state->tile->frame->alf_param_set_map = sub_state->tile->frame->alf_param_set_map = main_state->parent->tile->frame->alf_param_set_map; - main_state->tile->frame->alf_info = sub_state->tile->frame->alf_info = main_state->parent->tile->frame->alf_info; + sub_state->tile->frame->alf_param_set_map = main_state->tile->frame->alf_param_set_map; + sub_state->tile->frame->alf_info = main_state->tile->frame->alf_info; } kvz_image_free(sub_state->tile->frame->source); sub_state->tile->frame->source = NULL;