summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/spectool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/spectool.cc b/tools/spectool.cc
index 954aa52..29a2952 100644
--- a/tools/spectool.cc
+++ b/tools/spectool.cc
@@ -72,13 +72,13 @@ int analyze_audio(const char *in_path, const char *out_path) {
while (last_frame > 0) {
bool all_zeros = true;
for (int i = 0; i < DCT_SIZE; ++i) {
- if (spec_data[ (last_frame - 1) * DCT_SIZE + i ] != 0.0f) {
+ if (spec_data[(last_frame - 1) * DCT_SIZE + i] != 0.0f) {
all_zeros = false;
break;
}
}
if (all_zeros) {
- last_frame--;
+ --last_frame;
} else {
break;
}