Skip to content

Commit 5e249da

Browse files
committed
Check for a null sample rate from libmysofa
1 parent f94d8e7 commit 5e249da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/makemhr/loadsofa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ float GetSampleRate(MYSOFA_HRTF *sofaHrtf)
127127
}
128128
else
129129
fmt::println(std::cerr, "Unexpected sample rate attribute: {} = {}", srate_attrs->name,
130-
srate_attrs->value);
130+
srate_attrs->value ? srate_attrs->value : "<null>");
131131
srate_attrs = srate_attrs->next;
132132
}
133133
if(!srate_dim)

0 commit comments

Comments
 (0)