As noted by Reimar, the following two lines in libavutil/mem.h are probably MSVC cruft: #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const I suggest the attached patch removing them. Diego