[FFmpeg-devel] [PATCH] pixdesc: Add av_get_pix_fmt_descriptor()
Wed Sep 8 16:04:18 CEST 2010
Tomas H?rdin <tomas.hardin at codemill.se> writes:
> On Fri, 2010-07-09 at 16:45 +0200, Michael Niedermayer wrote:
>> On Thu, Jul 08, 2010 at 02:48:29PM +0200, Tomas H?rdin wrote:
>> > Hi
>> > While poking around with MinGW compiled lav* DLLs in MSVC I noticed
>> > link.exe can't resolve references to av_pix_fmt_descriptors. This is due
>> > to how import libraries work, but I'm not an expert. The important thing
>> > is that only functions get exported properly - globals don't.
>> __attribute__ ((dllexport))
>> gcc docs
> I finally got around to poking at this again. Adding
> __declspec(dllimport) is enough for the variable to be imported
> properly. It's already exported. The attached patch defines a macro
> called AV_DLLIMPORT, listed below:
> #ifdef WIN32
> #define AV_DLLIMPORT __declspec(dllimport)
> #define AV_DLLIMPORT
> I'm not sure this is the prettiest solution, but it works well enough on
> my Ubuntu machine, in MSYS and in MSVC.
Does it work with static builds on Windows?
mans at mansr.com
More information about the ffmpeg-devel