-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
patches/master/0032-textutils-include-time_internal.h.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 3e8678a486b50da2c1c7dae32eeb93d32327feb4 Mon Sep 17 00:00:00 2001 | ||
From: wang-bin <[email protected]> | ||
Date: Tue, 19 Nov 2024 19:27:09 +0800 | ||
Subject: [PATCH 32/32] textutils: include time_internal.h | ||
|
||
fix undefined localtime_r in msvc | ||
--- | ||
libavfilter/textutils.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/libavfilter/textutils.c b/libavfilter/textutils.c | ||
index e6b5239b20..471346cc51 100644 | ||
--- a/libavfilter/textutils.c | ||
+++ b/libavfilter/textutils.c | ||
@@ -31,6 +31,7 @@ | ||
#include "libavutil/file.h" | ||
#include "libavutil/mem.h" | ||
#include "libavutil/time.h" | ||
+#include "libavutil/time_internal.h" | ||
|
||
static int ff_expand_text_function_internal(FFExpandTextContext *expand_text, AVBPrint *bp, | ||
char *name, unsigned argc, char **argv) | ||
@@ -380,4 +381,3 @@ int ff_load_textfile(void *log_ctx, const char *textfile, | ||
|
||
return 0; | ||
} | ||
- | ||
-- | ||
2.39.5 (Apple Git-154) | ||
|
27 changes: 27 additions & 0 deletions
27
patches/master/0033-hwcontext_vaapi-fix-undefined-close-on-windows.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 58a25729988efd3a61f3e1e9df97b8a3e0cf6130 Mon Sep 17 00:00:00 2001 | ||
From: wang-bin <[email protected]> | ||
Date: Tue, 19 Nov 2024 19:43:02 +0800 | ||
Subject: [PATCH 33/33] hwcontext_vaapi: fix undefined close() on windows | ||
|
||
--- | ||
libavutil/hwcontext_vaapi.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c | ||
index 95aa38d9d2..95fbba514c 100644 | ||
--- a/libavutil/hwcontext_vaapi.c | ||
+++ b/libavutil/hwcontext_vaapi.c | ||
@@ -1643,8 +1643,10 @@ static void vaapi_device_free(AVHWDeviceContext *ctx) | ||
XCloseDisplay(priv->x11_display); | ||
#endif | ||
|
||
+#if HAVE_VAAPI_DRM | ||
if (priv->drm_fd >= 0) | ||
close(priv->drm_fd); | ||
+#endif | ||
|
||
av_freep(&priv); | ||
} | ||
-- | ||
2.39.5 (Apple Git-154) | ||
|