From c23099d3d9a64de71d969ca576b681e884d1b002 Mon Sep 17 00:00:00 2001 From: Elian Dib <elian.dib@inria.fr> Date: Mon, 5 Mar 2018 11:16:04 +0100 Subject: [PATCH] Corrected platform check order --- codec.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/codec.m b/codec.m index aed6528..df4729e 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'); -- GitLab