11diff --git a/fftools/opt_common.c b/fftools/opt_common.c
2- index f5b73c9f2f..672326999b 100644
2+ index 9d2d5184a0..4f0a8d59ce 100644
33--- a/fftools/opt_common.c
44+++ b/fftools/opt_common.c
55@@ -48,6 +48,9 @@
@@ -13,7 +13,7 @@ index f5b73c9f2f..672326999b 100644
1313 #include "libavdevice/version.h"
1414
1515diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
16- index 8bb6f1d38d..a9ca24443d 100644
16+ index 9225692c51..137bb69a06 100644
1717--- a/libavcodec/mfenc.c
1818+++ b/libavcodec/mfenc.c
1919@@ -59,6 +59,10 @@ typedef struct MFContext {
@@ -27,3 +27,42 @@ index 8bb6f1d38d..a9ca24443d 100644
2727 #define MF_TIMEBASE (AVRational){1, 10000000}
2828 // Sentinel value only used by us.
2929 #define MF_INVALID_TIME AV_NOPTS_VALUE
30+ diff --git a/libavfilter/textutils.c b/libavfilter/textutils.c
31+ index ef658d04a2..3ecce972f2 100644
32+ --- a/libavfilter/textutils.c
33+ +++ b/libavfilter/textutils.c
34+ @@ -30,6 +30,7 @@
35+ #include "libavutil/error.h"
36+ #include "libavutil/file.h"
37+ #include "libavutil/time.h"
38+ + #include "libavutil/time_internal.h"
39+
40+ static int ff_expand_text_function_internal(FFExpandTextContext *expand_text, AVBPrint *bp,
41+ char *name, unsigned argc, char **argv)
42+ @@ -189,7 +190,7 @@ int ff_print_pts(void *log_ctx, AVBPrint *bp, double pts, const char *delta,
43+ if (!strcmp(fmt, "localtime"))
44+ localtime_r(&ms, &tm);
45+ else
46+ - gmtime_r(&ms, &tm);
47+ + ff_gmtime_r(&ms, &tm);
48+ av_bprint_strftime(bp, av_x_if_null(strftime_fmt, "%Y-%m-%d %H:%M:%S"), &tm);
49+ } else {
50+ av_log(log_ctx, AV_LOG_ERROR, "Invalid format '%s'\n", fmt);
51+ @@ -219,7 +220,7 @@ int ff_print_time(void *log_ctx, AVBPrint *bp,
52+ if (localtime)
53+ localtime_r(&now, &tm);
54+ else
55+ - tm = *gmtime_r(&now, &tm);
56+ + tm = *ff_gmtime_r(&now, &tm);
57+
58+ // manually parse format for %N (fractional seconds)
59+ begin = fmt;
60+ diff --git a/libavformat/file_open.c b/libavformat/file_open.c
61+ index 494a5d37a4..2e13de17d7 100644
62+ --- a/libavformat/file_open.c
63+ +++ b/libavformat/file_open.c
64+ @@ -1 +1,4 @@
65+ + #include "config.h"
66+ + #if CONFIG_SHARED
67+ #include "libavutil/file_open.c"
68+ + #endif
0 commit comments