Evidence from a dashboard camera on a police cruiser ended a nightmare for a New Jersey man facing false charges of eluding police, resisting arrest and assault.

Prosecutors dismissed all the criminal charges against Marcus Jeter, 30, of Bloomfield, N.J. and instead indicted two Bloomfield police officers for falsifying reports and one of them for assault after the recording surfaced showing police officers beating Jeter during a traffic stop, according to WABC of New York. A third has pleaded guilty to tampering.

Jeter’s defense attorney requested all recorded evidence, but the police failed to hand over a second tape until additional evidence surfaced of a second police car at the scene. The tape showed Jeter complying with police, even as one punched him in the head repeatedly.

Without the tape, prosecutors had been demanding a five-year prison sentence.