From 987ac894037845fa406aaf7b9f502302993be295 Mon Sep 17 00:00:00 2001 From: John Koleszar Date: Mon, 28 Feb 2011 20:06:56 -0500 Subject: examples: use function to get iface pointers MSVC can't pass the address of global variables in a DLL correctly across DLL boundaries. This patch allows linking the examples to a libvpx dll build. Fixes issue #268. Change-Id: I1c52d076cfc68efb3efdfba019f12d53c5019f58 --- examples/encoder_tmpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/encoder_tmpl.c') diff --git a/examples/encoder_tmpl.c b/examples/encoder_tmpl.c index d9e4d0317..f109e6216 100644 --- a/examples/encoder_tmpl.c +++ b/examples/encoder_tmpl.c @@ -19,7 +19,7 @@ #define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vpx_encoder.h" #include "vpx/vp8cx.h" -#define interface (&vpx_codec_vp8_cx_algo) +#define interface (vpx_codec_vp8_cx()) #define fourcc 0x30385056 @EXTRA_INCLUDES -- cgit v1.2.3