]> git.sesse.net Git - ffmpeg/commitdiff
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 067e2b94106cae7f7d40861a3c77903331c77e94..a60b05748d3a4d1e9750c95ca687c864ee9ac9d5 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"