Changeset 1301 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder


Ignore:
Timestamp:
21 Jul 2015, 00:19:48 (10 years ago)
Author:
seregin
Message:

port rev 4339 and rev 4340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1298 r1301  
    10241024  SMultiValueInput<Int>  cfg_timeCodeSeiTimeOffsetLength     (0, 31, 0, MAX_TIMECODE_SEI_SETS);
    10251025  SMultiValueInput<Int>  cfg_timeCodeSeiTimeOffsetValue      (std::numeric_limits<Int>::min(), std::numeric_limits<Int>::max(), 0, MAX_TIMECODE_SEI_SETS);
     1026  Int warnUnknowParameter = 0;
    10261027
    10271028#if Q0096_OVERLAY_SEI
     
    10451046  ("help",                                            do_help,                                          false, "this help text")
    10461047  ("c",    po::parseConfigFile, "configuration file name")
     1048  ("WarnUnknowParameter,w",                           warnUnknowParameter,                                  0, "warn for unknown configuration parameters instead of failing")
    10471049
    10481050  // File, I/O and source parameters
     
    16881690
    16891691  po::setDefaults(opts);
    1690   const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv);
     1692  po::ErrorReporter err;
     1693  const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv, err);
    16911694
    16921695#if SVC_EXTENSION
     
    17201723    po::doHelp(cout, opts);
    17211724    return false;
     1725  }
     1726
     1727  if (err.is_errored)
     1728  {
     1729    if (!warnUnknowParameter)
     1730    {
     1731      /* error report has already been printed on stderr */
     1732      return false;
     1733    }
    17221734  }
    17231735
Note: See TracChangeset for help on using the changeset viewer.