Mentions légales du service

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

Corrected platform check order

parent 31328c30
No related branches found
No related tags found
No related merge requests found
......@@ -16,20 +16,20 @@ decode = codecp.Results.decode;
%% Select executable according to coding choice and OS
if encode
if ispc
TApp = fullfile(HEVCDir,'bin','TAppEncoder.exe');
if ismac
error('Platform not yet supported')
elseif isunix
TApp = fullfile(HEVCDir,'bin','TAppEncoderStatic');
else
error('Platform not supported')
elseif ispc
TApp = fullfile(HEVCDir,'bin','TAppEncoder.exe');
end
elseif decode
if ispc
TApp = fullfile(HEVCDir,'bin','TAppDecoder.exe');
if ismac
error('Platform not yet supported')
elseif isunix
TApp = fullfile(HEVCDir,'bin','TAppDecoderStatic');
else
error('Platform not supported')
elseif ispc
TApp = fullfile(HEVCDir,'bin','TAppDecoder.exe');
end
else
warning('Nothing to do');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment