swresample: include ff_log2_tab for shared builds
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 19 Oct 2012 19:35:40 +0000 (21:35 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 23:58:04 +0000 (01:58 +0200)
This is done in accordance with all other libraries, which no longer access ff_log2_tab from avutil directly for shared builds, and instead obtain their own copy.

This change is required for MSVC DLL builds, as well as avoids accessing a private symbol from another library.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/Makefile
libswresample/log2_tab.c [new file with mode: 0644]

index d85ed8b..4c3ec1c 100644 (file)
@@ -8,6 +8,7 @@ HEADERS = swresample.h                       \
 
 OBJS = audioconvert.o                        \
        dither.o                              \
+       log2_tab.o                            \
        rematrix.o                            \
        resample.o                            \
        swresample.o                          \
diff --git a/libswresample/log2_tab.c b/libswresample/log2_tab.c
new file mode 100644 (file)
index 0000000..47a1df0
--- /dev/null
@@ -0,0 +1 @@
+#include "libavutil/log2_tab.c"