[FFmpeg-devel] [PATCH] avcodec/libx264: don't define X264_API_IMPORTS when compiling static

Timo Rothenpieler timo at rothenpieler.org
Fri May 20 13:18:02 EEST 2022


On 20/05/2022 00:52, softworkz wrote:
> From: softworkz <softworkz at hotmail.com>
> 
> The definition of X264_API_IMPORTS is required for shared linking
> (when MSVC is used) but it must not be defined in case of static
> builds as is stated in x264.h:

This doesn't seem right. It's about shared or static linking of libx264 
itself, not ffmpeg.
The correct flag should come via pkg-config at configure time.


More information about the ffmpeg-devel mailing list