--- branches/release-1_3-branch/xvidcore/vfw/src/codec.c 2011/05/18 09:02:35 1985 +++ branches/release-1_3-branch/xvidcore/vfw/src/codec.c 2016/09/27 15:39:48 2139 @@ -560,10 +560,11 @@ create.num_plugins++; } - plugins[create.num_plugins].func = vfw_debug; - plugins[create.num_plugins].param = NULL; - create.num_plugins++; - + if (config->debug > 0) { + plugins[create.num_plugins].func = vfw_debug; + plugins[create.num_plugins].param = NULL; + create.num_plugins++; + } create.profile = profiles[codec->config.profile].id; create.width = lpbiInput->bmiHeader.biWidth;