]> granicus.if.org Git - libvpx/commitdiff
vpxdec: add some missing CONFIG_WEBM_IO checks
authorJames Zern <jzern@google.com>
Sun, 11 May 2014 00:44:12 +0000 (17:44 -0700)
committerJames Zern <jzern@google.com>
Tue, 13 May 2014 05:43:11 +0000 (22:43 -0700)
fixes build of this file in the dist directory when using
'--enable-install-srcs'

Change-Id: I7743611bea9e0bddb473777e2e007e6eadebfc1f

vpxdec.c

index 63569610ca9433b1635da7fa2204d7cb75718864..ed37c7083273e13bdfe2add3ccdb344554aac768 100644 (file)
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -33,7 +33,9 @@
 #include "./md5_utils.h"
 
 #include "./tools_common.h"
+#if CONFIG_WEBM_IO
 #include "./webmdec.h"
+#endif
 #include "./y4menc.h"
 
 static const char *exec_name;
@@ -528,9 +530,11 @@ int main_loop(int argc, const char **argv_) {
 
   struct VpxDecInputContext input = {0};
   struct VpxInputContext vpx_input_ctx = {0};
+#if CONFIG_WEBM_IO
   struct WebmInputContext webm_ctx = {0};
-  input.vpx_input_ctx = &vpx_input_ctx;
   input.webm_ctx = &webm_ctx;
+#endif
+  input.vpx_input_ctx = &vpx_input_ctx;
 
   /* Parse command line */
   exec_name = argv_[0];