Inflammation of the endocardium, a thin, smooth membrane that lines the inside of the heart. The endocardium also forms the surface of the heart valves.