I've encountered the same problem in the past and now use VideoLan Client (VLC) to play .avi files. Also after looking for some other programs I came across MPlayer OS X. It seems to be legitimate.
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.