Actually MINGW can link with both .a and .lib files, but the avcodec library's API is so extremely fragile and changes so often in incompatible ways, that I do not give much chance that it will work without some tweaking of the code.
Every time avcodec is updated in he linux distro, we had to adjust the code to compile. (this is the main reason why the feature is disabled by default in INET)