[Encoder] fix a LTR range problem when LTR num is larger than 2

and improve some comments
reviewed at: https://rbcommons.com/s/OpenH264/r/796/