From b6cce760de4143544d280ffffd27cf7e59c37558 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 10 May 2014 17:44:12 -0700 Subject: [PATCH] vpxdec: add some missing CONFIG_WEBM_IO checks fixes build of this file in the dist directory when using '--enable-install-srcs' Change-Id: I7743611bea9e0bddb473777e2e007e6eadebfc1f --- vpxdec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vpxdec.c b/vpxdec.c index 63569610c..ed37c7083 100644 --- 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]; -- 2.40.0