aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-26 13:45:25 -0700
committerChris Robinson <[email protected]>2019-03-26 13:45:25 -0700
commit8b0c9fcf309e60b1f9c71371174b50dfe27508bc (patch)
tree4fb67e07fb146e6185230463441514c3c98dacbe
parent2446ee0ccadaf0d2e7d580a322d1953c2e986604 (diff)
Require IR dimensions from a SOFA file
-rw-r--r--utils/makemhr/loadsofa.cpp4
1 files 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;