From dcdde306794418ffed923a8226909662cfe2913e Mon Sep 17 00:00:00 2001 From: v0lt Date: Mon, 29 Jul 2024 12:29:36 +0300 Subject: [PATCH] =?UTF-8?q?FFmpeg:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB?= =?UTF-8?q?=D1=8F=D1=86=D0=B8=D1=8F=20=D0=B2=D0=BD=D0=B5=D1=88=D0=BD=D0=B8?= =?UTF-8?q?=D1=85=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=BE=D0=B2=20?= =?UTF-8?q?=D1=81=20HAVE=5FUNISTD=5FH=20=D1=80=D0=B0=D0=B2=D0=BD=D1=8B?= =?UTF-8?q?=D0=BC=201.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExtLib/ffmpeg/config.asm | 2 +- src/ExtLib/ffmpeg/config.h | 2 +- src/filters/ffmpeg_link_fix.h | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ExtLib/ffmpeg/config.asm b/src/ExtLib/ffmpeg/config.asm index c34d8579d9..bed81d0157 100644 --- a/src/ExtLib/ffmpeg/config.asm +++ b/src/ExtLib/ffmpeg/config.asm @@ -392,7 +392,7 @@ %define HAVE_VAAPI_WIN32 0 %define HAVE_TRUNC 1 %define HAVE_TRUNCF 1 -%define HAVE_UNISTD_H 0 +%define HAVE_UNISTD_H 1 %define HAVE_VALGRIND_VALGRIND_H 0 %define HAVE_USLEEP 1 %define HAVE_VDPAU_X11 0 diff --git a/src/ExtLib/ffmpeg/config.h b/src/ExtLib/ffmpeg/config.h index 4206d6d6be..254ce6eab2 100644 --- a/src/ExtLib/ffmpeg/config.h +++ b/src/ExtLib/ffmpeg/config.h @@ -486,7 +486,7 @@ #define HAVE_VAAPI_WIN32 0 #define HAVE_TRUNC 1 #define HAVE_TRUNCF 1 -#define HAVE_UNISTD_H 0 +#define HAVE_UNISTD_H 1 #define HAVE_VALGRIND_VALGRIND_H 0 #define HAVE_USLEEP 1 #define HAVE_VDPAU_X11 0 diff --git a/src/filters/ffmpeg_link_fix.h b/src/filters/ffmpeg_link_fix.h index 6b5b947acc..786513fa52 100644 --- a/src/filters/ffmpeg_link_fix.h +++ b/src/filters/ffmpeg_link_fix.h @@ -5,5 +5,10 @@ void *__imp__aligned_malloc = _aligned_malloc; void *__imp__aligned_realloc = _aligned_realloc; void *__imp__aligned_free = _aligned_free; +#ifdef REGISTER_FILTER +#include +void *__imp__sopen = _sopen; +void *__imp__wsopen = _wsopen; +#endif #endif // FFMPEG_LINK_FIX_H