The Libertine (2004)
The Libertine is a 2004 British drama film directed by Laurence Dunmore, in his first outing, and adapted by Stephen Jeffreys' from his play of the same name, starring Johnny Depp, John Malkovich, Samantha Morton and Rosamund Pike.
More at Wikipedia.