fix reference frame update issue which will casue crash

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