summaryrefslogtreecommitdiff
path: root/examples/decoder_tmpl.txt
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2011-02-28 20:06:56 -0500
committerJohn Koleszar <jkoleszar@google.com>2011-02-28 20:06:59 -0500
commit987ac894037845fa406aaf7b9f502302993be295 (patch)
tree763dab64a20200446fe8aed3fc4b681c775854a9 /examples/decoder_tmpl.txt
parentcfaee9f7c663150d4bc478bb47e3eb4038076ca5 (diff)
downloadlibvpx-987ac894037845fa406aaf7b9f502302993be295.tar
libvpx-987ac894037845fa406aaf7b9f502302993be295.tar.gz
libvpx-987ac894037845fa406aaf7b9f502302993be295.tar.bz2
libvpx-987ac894037845fa406aaf7b9f502302993be295.zip
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
Diffstat (limited to 'examples/decoder_tmpl.txt')
-rw-r--r--examples/decoder_tmpl.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/decoder_tmpl.txt b/examples/decoder_tmpl.txt
index 310c66d54..7dd05d1ff 100644
--- a/examples/decoder_tmpl.txt
+++ b/examples/decoder_tmpl.txt
@@ -2,7 +2,7 @@
#define VPX_CODEC_DISABLE_COMPAT 1
#include "vpx/vpx_decoder.h"
#include "vpx/vp8dx.h"
-#define interface (&vpx_codec_vp8_dx_algo)
+#define interface (vpx_codec_vp8_dx())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES