Commit ce4c7459 authored by Steve Lhomme's avatar Steve Lhomme

mkclean: cleaner handling of the regression string

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@741 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent fbe5d0c0
......@@ -1869,26 +1869,34 @@ int main(int argc, const char *argv[])
s = Original;
if (tcsnicmp_ascii(Original,T("mkclean "),8)==0)
s += 14;
stprintf_s(String,TSIZEOF(String),T("mkclean %s"),PROJECT_VERSION);
if (Remux || Optimize || Live || UnOptimize || ARRAYCOUNT(Alternate3DTracks, block_info*))
tcscat_s(String,TSIZEOF(String),T(" "));
if (Remux)
tcscat_s(String,TSIZEOF(String),T("r"));
if (Optimize)
tcscat_s(String,TSIZEOF(String),T("o"));
if (Live)
tcscat_s(String,TSIZEOF(String),T("l"));
if (UnOptimize)
tcscat_s(String,TSIZEOF(String),T("u"));
if (ARRAYCOUNT(Alternate3DTracks, block_info*))
if (Regression)
{
tcscat_s(String,TSIZEOF(String),T("3"));
Remux = 1;
if (s[0])
stprintf_s(String,TSIZEOF(String),T("mkclean regression from %s"),s);
else
stprintf_s(String,TSIZEOF(String),T("mkclean regression"));
}
else
{
stprintf_s(String,TSIZEOF(String),T("mkclean %s"),PROJECT_VERSION);
if (Remux || Optimize || Live || UnOptimize || ARRAYCOUNT(Alternate3DTracks, block_info*))
tcscat_s(String,TSIZEOF(String),T(" "));
if (Remux)
tcscat_s(String,TSIZEOF(String),T("r"));
if (Optimize)
tcscat_s(String,TSIZEOF(String),T("o"));
if (Live)
tcscat_s(String,TSIZEOF(String),T("l"));
if (UnOptimize)
tcscat_s(String,TSIZEOF(String),T("u"));
if (ARRAYCOUNT(Alternate3DTracks, block_info*))
{
tcscat_s(String,TSIZEOF(String),T("3"));
Remux = 1;
}
if (s[0])
stcatprintf_s(String,TSIZEOF(String),T(" from %s"),s);
}
if (s[0])
stcatprintf_s(String,TSIZEOF(String),T(" from %s"),s);
if (Regression)
stprintf_s(String,TSIZEOF(String),T("mkclean regression from %s"),s);
EBML_UniStringSetValue(AppName,String);
ExtraSizeDiff = tcslen(String) - ExtraSizeDiff + 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment