lsws: duplicate ff_log2_tab
authorJames Almer <jamrial@gmail.com>
Tue, 12 Aug 2014 18:21:24 +0000 (15:21 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Aug 2014 18:52:21 +0000 (20:52 +0200)
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@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/Makefile
libswscale/log2_tab.c [new file with mode: 0644]

index 067e2b9..a60b057 100644 (file)
@@ -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 (file)
index 0000000..47a1df0
--- /dev/null
@@ -0,0 +1 @@
+#include "libavutil/log2_tab.c"