Now that you mention that error codes are large unsigned int. The entire libavfitler library seems to assume that error codes fit into "int", which isn't a problem for 64 bit builds, but 32 bit builds can be undefined?