Body camera video shows the moment a Brevard County, FL, man was rescued by West Melbourne and Palm Bay police from a burning car Thursday morning.

West Melbourne and Palm Bay officers were conducting an investigation at a Hampton Inn when they got an unrelated call just after 10:30 a.m. about a vehicle that had caught on fire following a crash, ClickOrlando reports.

Flames were visible when officers arrived on scene, according to a joint statement from the police departments.

Police said they could hear someone calling for help from inside the car “before they jumped into action.”

“Had it not been for the swift action of these officers, things may have ended differently,” the police statement said.