The SDK sample cudadecodeGL doesn't support *.avi??

I try to use the sdk sample cudadecodegl to decode a H264 video ,its format is avi. but the program stopped. I have used it to decode m2v mp4 mpeg successfully.why not it support h264 avi!!?

thumb!!!!!!!!!!!!!

AVI is just a container for different video types. The video you’re attempting to decode might be malformed or not conform to the H264 specs referenced in the PDF link below.

The documentation on what video types are supported is here:
http://docs.nvidia.com/cuda/samples/3_Imaging/cudaDecodeGL/doc/nvcuvid.pdf

Thanks Bro!!I have use the mediacoder to encode the input video that conform to the h264 type!your document is useful,I will check it!