The slice->pps->PicWidthInCtbsY/PicHeightInCtbsY values are calculated when we parse the slice header. But they are not calculated in bitwriter and so may not have valid value when writing slice header. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2287>