[Encoder] Use function pointer for pEndofUpdateRefList

Use function pointer as refactoring for further strategy adjustment
https://rbcommons.com/s/OpenH264/r/822/