From 8b0c9fcf309e60b1f9c71371174b50dfe27508bc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 26 Mar 2019 13:45:25 -0700 Subject: Require IR dimensions from a SOFA file --- utils/makemhr/loadsofa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/makemhr/loadsofa.cpp b/utils/makemhr/loadsofa.cpp index 5977d52f..ae8a1c46 100644 --- a/utils/makemhr/loadsofa.cpp +++ b/utils/makemhr/loadsofa.cpp @@ -415,9 +415,9 @@ bool CheckIrData(MYSOFA_HRTF *sofaHrtf) if(!ir_dim) { fprintf(stderr, "Missing IR dimensions\n"); - /*return false;*/ + return false; } - else if(ir_dim != std::string{"M,R,N"}) + if(ir_dim != std::string{"M,R,N"}) { fprintf(stderr, "Unsupported IR dimensions: %s\n", ir_dim); return false; -- cgit v1.2.3