Damn.. the problem was the libavcodec!! I've downloaded the las ftom cvs and all problems disappear! (except for one but i'll test it tonight..) Sorry for all.. Another thing.. if af_tools.h (or c i don't remember well) it is possible to change the #include <af.h> with #include "af.h" bye