ref: 77c3594e08fbf4f7956232fc2d33a5f5768302b1
parent: c4a59690da68876632c412e3cf2e5f253c07b442
author: Martin Storsjö <[email protected]>
date: Tue Jun 10 10:58:09 EDT 2014
Actually set the trace level in the encoder console app
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -102,7 +102,7 @@
static void SigIntHandler (int a) {
g_iCtrlC = 1;
}
-static int g_LevelSetting = 0;
+static int g_LevelSetting = -1;
int ParseLayerConfig (CReadConfig& cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam, SFilesSet& sFileSet) {
if (!cRdLayerCfg.ExistFile()) {
@@ -664,6 +664,9 @@
printf ("parse pCommand line failed\n");
iRet = 1;
goto INSIDE_MEM_FREE;
+ }
+ if (g_LevelSetting >= 0) {
+ pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &g_LevelSetting);
}
//finish reading the configurations
iSourceWidth = pSrcPic->iPicWidth;