﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1092	Bug on signalling of some partitioning layouts in VTM-9.0 encoder	vdrugeon		"The VTM encoder initialises the value of the variable numExpSliceInTile in function HLSWriter::codePPS to pcPPS->getNumSlicesInTile(i) - 1. This variable is then used to determine the syntax element num_exp_slices_in_tile[i] written in the bitstream.

But initialising this variable to pcPPS->getNumSlicesInTile(i) - 1 can lead to issues when a tile contains several slices for which the last slice is bigger than the previous one: for example, if a tile has a height of 5 CTUs and contains two slices with the first slice having a height of 2 CTUs and the second a height of 3 CTUs. In that case, the current VTM encoder will set the value of num_exp_slices_in_tile to 1 instead of 2, which means that the decoder will derive a tile having 3 slices instead of 2 with the first two slices having a height of 2 CTUs and the last one a height of only 1 CTU.

Initialising the variable numExpSliceInTile as follows would solve the problem for the above described configuration:
uint32_t numExpSliceInTile = (pcPPS->getNumSlicesInTile(i) == 1) ? 0 : pcPPS->getNumSlicesInTile(i);
"	defect	closed	minor	VTM-9.1	VTM	VTM-9.0	fixed		ksuehring XiangLi fbossen jvet@…
