The AVI was oddly encoded and it was not a bug in VLC. Don't feel bad as a I write that encoding takes time to decipher and learn about. Again, there is nothing wrong here unless you consider the system of encoding to be broken.

Use MEDIAINFO to inspect the broken file.
Bob