A codec is a little utility that enCOdes/DECodes audio - in this case from media files. It should be one of the apps using the least amount of power. Restart the phone and see if it still happens. If not, you may have to reflash the ROM or have the phone replaced, depending on the state of warranty/insurance.