> > That is strange, because, unless I am mistaken, the syntax in your patch is > not valid C. And, still unless I am mistaken, ffmpeg can not be built with > visual studio. > My mistake. I built a C++ application with it, not ffmpeg. I guess #define AVERROR(e) (-((int)e)) Would be the valid syntax?