diff --git a/codec.m b/codec.m index aed65283b7a77437809e868036d6b6351d882518..df4729ecf3cec4c0f0b937d7e9d07fec7ab79719 100644 --- a/codec.m +++ b/codec.m @@ -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');