(CNN) A teacher and student at a southeast Los Angeles, California, high school came to blows Friday afternoon, and it was all caught on video.

The footage from CNN affiliates KTLA-TV and KCAL shows Maywood Academy High School music teacher Marston Riley, 64, standing face to face with a 14-year-old boy at the front of a classroom when Riley punches him. It's at this point the two begin exchanging punches. The boy wound up on the ground wrapping his arms around Riley's leg. Riley, at this point, repeatedly punches him.

The brawl ends with students and what appears to be a campus resource officer trying to separate the two, but Riley continues to pursue the student. It is not clear when the short video started and if it caught the entire exchange.

Students told KTLA the fight began after Riley asked the student to leave the class because he wasn't wearing the proper uniform. The boy refused, students said, and video taken by another student shows the boy shouting profanity and a racial slur at Riley, who is black.

The boy, who has not been identified, was taken to a local hospital where he was treated for moderate injuries and later released, according to a news release from the Los Angeles County Sheriff's Department. Riley was arrested on charges of child abuse, the release said. He posted bond and was released Saturday. Riley has an arraignment scheduled for November 30.

Read More