[Encoder Refactor] Simplify the setting of function pointers

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