If it happens with every AVI file, the problem is with the Codec being loaded to decode the file. If it happens with just one file, then it's only that movie.
You can go to DivX.com and get the latest codec pack, or get the K-Lite pack here:
http://www.free-codecs.com/download/K_Lite_Codec_Pack.htm
WHatever you choose, look for an option on your machine to uninstall the old codecs first.