in the file aviplay.cpp the function
AviPlayer::setColorSpace make this call:
stream->GetDecoder()->SetDestFmt(0, csp);
The 0 for the bitdepth is wrong. It don't cause any
trouble for most value of csp, but it make the player
crash with csp=0;
I've encountered this probleme when trying to
setColorSpace to it's default after setting it to
fccYUY2, by calling setColorSpace(0, FALSE). (There is
maybe a better way to do this ?)
I've been able to solve the probleme by hardcoding my
bitdepth in the SetDestFmt call in aviplay.cpp, so you
should replace this 0 by the effective bitdepth
provided at the initialisation.
PS: This bug was found in avifile-0.53.5, but the 0.6
current CVS don't seem to be corrected.