How do you fix the xvidcore.dll error?

To fix dll error, you need to download a copy of dll file to replace the old or missing one. But it is not always the case, sometimes it is complicated and inconvenient to fix dll error manually.