[FFmpeg-devel] Fw: A static compilation duplicate reference error. Request a fix.

Timo Rothenpieler timo at rothenpieler.org
Wed Mar 27 02:01:01 EET 2024


> There is a bug here, please update it when you request an update.
> 
> https://github.com/FFmpeg/FFmpeg/blob/61afe4d98ce62d9dfc6f0548e18730ba2f621cc2/libavformat/file.c#L531
> 
> The correct result should be #include "libavcodec/ffjni.h"
> 

Pretty sure this is intentional, to get the private symbol into both 
libraries and not a bug.
The linker will hide the symbol in shared libraries, and be smart enough 
to realize it's identical in case of static linking.


More information about the ffmpeg-devel mailing list