Johnny Depp makes courtroom laugh as he struggles to recall his own movies