[Encoder] fix a small range of slice idx

reviewed at: https://rbcommons.com/s/OpenH264/r/871/