According to the spec, the two values pic_size_in_map_units_minus1 and num_slice_groups_minus1 should be used the other way around. As pointed out by @wrv.
Fixes #57
Also, fix a nearby calculation which lacked ceil(). The spec asks for Ceil( Log2( num_slice_groups_minus1 + 1 ) )
Fix variable-name confusion error.
According to the spec, the two values
pic_size_in_map_units_minus1
andnum_slice_groups_minus1
should be used the other way around. As pointed out by @wrv.Fixes #57
Also, fix a nearby calculation which lacked
ceil()
. The spec asks forCeil( Log2( num_slice_groups_minus1 + 1 ) )