[FFmpeg-devel] [PATCH] libavformat\file:Fix duplicate JNI symbols

Zhao Zhili quinkblack at foxmail.com
Sun Mar 24 06:09:39 EET 2024


On 2024/3/24 10:16, Zhao Zhili wrote:
>
>> diff --git a/libavformat/file.c b/libavformat/file.c
>> index dd5819c..fa13ae9 100644
>> --- a/libavformat/file.c
>> +++ b/libavformat/file.c
>> @@ -43,7 +43,7 @@
>>   #if CONFIG_ANDROID_CONTENT_PROTOCOL
>>   #include <jni.h>
>>   #include "libavcodec/jni.h"
>> -#include "libavcodec/ffjni.c"
>> +#include "libavcodec/ffjni.h"
>>   #endif
> This just break --enable-shared, so NACK.

The following patch should work for static and shared both.

https://ffmpeg.org/pipermail/ffmpeg-devel/2024-March/324138.html




More information about the ffmpeg-devel mailing list