[FFmpeg-devel] [PATCH] Attempt to fix av_fopen_utf8() use in ffmpeg on windows

Michael Niedermayer michael at niedermayer.cc
Wed Mar 9 15:53:15 CET 2016


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 Makefile              |    1 +
 file_open.c           |    1 +
 tests/ref/fate/source |    1 +
 3 files changed, 3 insertions(+)
 create mode 100644 file_open.c

diff --git a/Makefile b/Makefile
index 87a9869..0193960 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,7 @@ ALLAVPROGS_G = $(AVBASENAMES:%=%$(PROGSSUF)_g$(EXESUF))
 
 $(foreach prog,$(AVBASENAMES),$(eval OBJS-$(prog) += cmdutils.o))
 $(foreach prog,$(AVBASENAMES),$(eval OBJS-$(prog)-$(CONFIG_OPENCL) += cmdutils_opencl.o))
+$(foreach prog,$(AVBASENAMES),$(eval OBJS-$(prog)-$(HAVE_LIBC_MSVCRT) += file_open.o))
 
 OBJS-ffmpeg                   += ffmpeg_opt.o ffmpeg_filter.o
 OBJS-ffmpeg-$(HAVE_VDPAU_X11) += ffmpeg_vdpau.o
diff --git a/file_open.c b/file_open.c
new file mode 100644
index 0000000..494a5d3
--- /dev/null
+++ b/file_open.c
@@ -0,0 +1 @@
+#include "libavutil/file_open.c"
diff --git a/tests/ref/fate/source b/tests/ref/fate/source
index ec0a98e..40c96b3 100644
--- a/tests/ref/fate/source
+++ b/tests/ref/fate/source
@@ -2,6 +2,7 @@ Files without standard license headers:
 cmdutils_common_opts.h
 compat/avisynth/windowsPorts/basicDataTypeConversions.h
 compat/avisynth/windowsPorts/windows2linux.h
+file_open.c
 libavcodec/file_open.c
 libavcodec/interplayacm.c
 libavcodec/log2_tab.c
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list