The Grand Ayatollah Khamenei answered a question about ejaculation by looking at erotic scene.
Question: A person whilst fasting has looked at erotic scene and ejaculated, does this act make fasting void?
The Grand Ayatollah Khamenei: If the person had intended or knew that by looking at the scene would ejaculate or is used to this act and intentionally has looked and ejaculated, the ruling of intentional ejaculation applies; meaning, must fast later on for the lost day and also pay Kaffarah.
source : Shafaqna