Best and easiest way to see what is faulty is plug the camera into a known working SX20, at the same time taking the working camera and plug it into the SX20 that has the questionable camera. If the issue follows the camera, your camera is faulty, if the issue stays at the codec, it's the codec.