I'm guessing you question is two-part: 1. Was the search illegal. and 2. Is the evidence you sufficient for conviction. As to the first question, probable not. The cop can walk up to you and look inside your car without needing a warrant, and once you give consent to a search the game is pretty much over. As to the second part, maybe. Certainly the jury is allowed to believe that if the meth is either under or in your jacket (you don't say which) that it is yours. Your attorney neeeds to argue that this is something that they shouldn't do. You will almost certainly need to testify and let the jury know how your jacket got there, and that the drugs are not yours. (NOTE: if you have a felony or a misdemeanor criminal record for a crime of moral turpitude, it will come out on cross-examination). This is a case where the quality of argument on both side will be key.
What's your question?
Mr. Feasel is a former Deputy DA in the SF Bay Area with over 10 years of criminal law experience. Nothing stated on this site shall in anyway be construed as legal advice, or as creating any attorney/client relationship. If you would like to hire Mr. Feasel to further investigate your situation, feel free to contact him thru this site.