[alf] fix alf_info passing to sub_states

This commit is contained in:
Marko Viitanen 2021-07-23 21:54:52 +03:00
parent dc6862051e
commit 070dcc1924

View file

@ -1135,8 +1135,8 @@ static void encoder_state_encode(encoder_state_t * const main_state) {
if (sub_state->encoder_control->cfg.alf_type) { if (sub_state->encoder_control->cfg.alf_type) {
main_state->slice->alf = sub_state->slice->alf = main_state->parent->slice->alf; 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; sub_state->tile->frame->alf_param_set_map = main_state->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_info = main_state->tile->frame->alf_info;
} }
kvz_image_free(sub_state->tile->frame->source); kvz_image_free(sub_state->tile->frame->source);
sub_state->tile->frame->source = NULL; sub_state->tile->frame->source = NULL;