[FFmpeg-devel] avfilter: Add file_open.c, needed for avpriv_open() use also to libavfilter

Submitted by Michael Niedermayer on Feb. 15, 2017, 12:17 a.m.

Details

Message ID 20170215001714.27199-1-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Feb. 15, 2017, 12:17 a.m.
Needed by peakpoints filter

This is identical to how it is used in the other libs
---
 libavfilter/Makefile    | 1 +
 libavfilter/file_open.c | 1 +
 tests/ref/fate/source   | 1 +
 3 files changed, 3 insertions(+)
 create mode 100644 libavfilter/file_open.c

Patch hide | download patch | download mbox

diff --git a/libavfilter/Makefile b/libavfilter/Makefile
index 695167c9f6..f18ca199e8 100644
--- a/libavfilter/Makefile
+++ b/libavfilter/Makefile
@@ -25,6 +25,7 @@  OBJS = allfilters.o                                                     \
        transform.o                                                      \
        video.o                                                          \
 
+OBJS-$(HAVE_LIBC_MSVCRT)                     += file_open.o
 OBJS-$(HAVE_THREADS)                         += pthread.o
 
 # audio filters
diff --git a/libavfilter/file_open.c b/libavfilter/file_open.c
new file mode 100644
index 0000000000..494a5d37a4
--- /dev/null
+++ b/libavfilter/file_open.c
@@ -0,0 +1 @@ 
+#include "libavutil/file_open.c"
diff --git a/tests/ref/fate/source b/tests/ref/fate/source
index 67906d1198..2eef1ce6c1 100644
--- a/tests/ref/fate/source
+++ b/tests/ref/fate/source
@@ -7,6 +7,7 @@  libavcodec/interplayacm.c
 libavcodec/log2_tab.c
 libavcodec/reverse.c
 libavdevice/file_open.c
+libavfilter/file_open.c
 libavfilter/log2_tab.c
 libavformat/file_open.c
 libavformat/golomb_tab.c