[FFmpeg-devel] [PATCH] lsws: duplicate ff_log2_tab
James Almer
jamrial at gmail.com
Tue Aug 12 20:21:24 CEST 2014
libswscale uses the table but wasn't duplicating it like the rest of the libs.
This should fix compilation failures on msvc/icl after lavu stopped exporting
internal functions and tables.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libswscale/Makefile | 2 ++
libswscale/log2_tab.c | 1 +
2 files changed, 3 insertions(+)
create mode 100644 libswscale/log2_tab.c
diff --git a/libswscale/Makefile b/libswscale/Makefile
index 067e2b9..a60b057 100644
--- a/libswscale/Makefile
+++ b/libswscale/Makefile
@@ -15,6 +15,8 @@ OBJS = hscale_fast_bilinear.o \
utils.o \
yuv2rgb.o \
+OBJS-$(CONFIG_SHARED) += log2_tab.o
+
# Windows resource file
SLIBOBJS-$(HAVE_GNU_WINDRES) += swscaleres.o
diff --git a/libswscale/log2_tab.c b/libswscale/log2_tab.c
new file mode 100644
index 0000000..47a1df0
--- /dev/null
+++ b/libswscale/log2_tab.c
@@ -0,0 +1 @@
+#include "libavutil/log2_tab.c"
--
1.8.5.5
More information about the ffmpeg-devel
mailing list