Fixed coding of headers for inter coding with ALF.

This commit is contained in:
Arttu Makinen 2020-10-20 17:35:51 +03:00
parent 26dc5b8c4e
commit bd292dab16

View file

@ -1241,6 +1241,12 @@ void kvz_encoder_state_write_bitstream_slice_header(
WRITE_U(stream, 0, 1, "sh_no_output_of_prior_pics_flag");
}
//alf
if (encoder->cfg.alf_enable && !encoder->cfg.alf_info_in_ph_flag)
{
const int alf_enabled = state->slice->tile_group_alf_enabled_flag[COMPONENT_Y];
WRITE_U(stream, alf_enabled, 1, "slice_alf_enabled_flag");
if (alf_enabled)
{
WRITE_U(stream, state->slice->tile_group_num_aps, 3, "slice_num_alf_aps_ids_luma");