Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 165ce341 authored by DIB Elian's avatar DIB Elian
Browse files

Merge branch 'fixSpaceInPathMikael' into develop

parents c23099d3 ba531090
No related branches found
No related tags found
No related merge requests found
......@@ -99,15 +99,15 @@ HEVCArgList = paramToArgList(HEVCParams);
extraHEVCArgList = paramToArgList(extraHEVCParams);
if ispc
redirect = @(logfile) ['> ',logfile,' | type ' logfile];
redirect = @(logfile) ['> "',logfile,'" | type "' logfile, '"'];
elseif isunix
redirect = @(logfile) ['| tee ' ,LogFile];
end
if encode
command = [TApp,' ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileEnc)];
command = ['"' TApp,'" ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileEnc)];
elseif decode
command = [TApp,' ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileDec)];
command = ['"' TApp,'" ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileDec)];
end
disp(command)
......@@ -115,9 +115,9 @@ status = system(command);
if status
if encode
command = [TApp,' ',HEVCArgList,' ',redirect(LogFileEnc)];
command = ['"' TApp,'" ',HEVCArgList,' ',redirect(LogFileEnc)];
elseif decode
command = [TApp,' ',HEVCArgList,' ',redirect(LogFileDec)];
command = ['"' TApp,'" ',HEVCArgList,' ',redirect(LogFileDec)];
end
disp(command)
......@@ -140,7 +140,7 @@ function argList = paramToArgList(Params)
parameters = fieldnames (Params);
values = struct2cell(Params);
argList = cellfun(@(param,val) ['--',param,'=',val],parameters,values,'UniformOutput',false);
argList = cellfun(@(param,val) ['--',param,'="',val,'"'],parameters,values,'UniformOutput',false);
argList = strjoin(argList(:));
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment