Skip to content

Commit

Permalink
FFmpeg: исправлена компиляция внешних фильтров с HAVE_UNISTD_H равным 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lt committed Jul 29, 2024
1 parent 75e03d4 commit dcdde30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ExtLib/ffmpeg/config.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ExtLib/ffmpeg/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/filters/ffmpeg_link_fix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <io.h>
void *__imp__sopen = _sopen;
void *__imp__wsopen = _wsopen;
#endif

#endif // FFMPEG_LINK_FIX_H

0 comments on commit dcdde30

Please sign in to comment.