Visit the respective codec website and look for the latest version, compatible with the operating system. Download and install the codec, and restart the computer to solve the error.