Hans Zimmer has received an apology from a fellow composer who now says he mistakenly sued the Oscar-winner for copyright infringement over the music to 12 Years a Slave.

Richard Friedman sued Zimmer for copyright infringement in January 2015 over the film’s music, but he now says he never should have brought the case.

12 Years A Slave won an Oscar
12 Years A Slave won an Oscar for Best Picture (John Shearer/AP)

Friedman wrote a letter to Zimmer saying he deeply regrets filing the lawsuit.

The case was dismissed from a federal court in Los Angeles on Wednesday.

Hans Zimmer
Hans Zimmer (Dominic Lipinski/PA)

Zimmer has been nominated for 10 Academy Awards and won an Oscar for his score for The Lion King.

Friedman composes music for movie scores. He writes in his apology letter that he sued based on an incorrect opinion of a music expert.

Zimmer says he is gratified by the outcome.