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; ...@@ -16,20 +16,20 @@ decode = codecp.Results.decode;
%% Select executable according to coding choice and OS %% Select executable according to coding choice and OS
if encode if encode
if ispc if ismac
TApp = fullfile(HEVCDir,'bin','TAppEncoder.exe'); error('Platform not yet supported')
elseif isunix elseif isunix
TApp = fullfile(HEVCDir,'bin','TAppEncoderStatic'); TApp = fullfile(HEVCDir,'bin','TAppEncoderStatic');
else elseif ispc
error('Platform not supported') TApp = fullfile(HEVCDir,'bin','TAppEncoder.exe');
end end
elseif decode elseif decode
if ispc if ismac
TApp = fullfile(HEVCDir,'bin','TAppDecoder.exe'); error('Platform not yet supported')
elseif isunix elseif isunix
TApp = fullfile(HEVCDir,'bin','TAppDecoderStatic'); TApp = fullfile(HEVCDir,'bin','TAppDecoderStatic');
else elseif ispc
error('Platform not supported') TApp = fullfile(HEVCDir,'bin','TAppDecoder.exe');
end end
else else
warning('Nothing to do'); 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