diff --git a/vpxdec.c b/vpxdec.c
index becc23bc5008c686eb6f8e23df76c562f9ed5100..faee42a0ba2c8d73466188af44d4e77bb3bccf0e 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -538,7 +538,7 @@ int main_loop(int argc, const char **argv_) {
   struct VpxDecInputContext input = {NULL, NULL};
   struct VpxInputContext vpx_input_ctx;
 #if CONFIG_WEBM_IO
-  struct WebmInputContext webm_ctx;
+  struct WebmInputContext webm_ctx = {0};
   input.webm_ctx = &webm_ctx;
 #endif
   input.vpx_input_ctx = &vpx_input_ctx;