using function pointer to make different branch for different rc

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