libsndfile / sndfile-tools

A collection of tools (written in C) to do interesting things with sound files
http://libsndfile.github.io/sndfile-tools/
GNU General Public License v2.0
80 stars 36 forks source link

spectrogram: Infinite loop in calculate_ticks if step == 0 #79

Open coypoop opened 3 years ago

coypoop commented 3 years ago

A file generating this infinite loop is available here: http://coypu.sdf.org/dial1.audio (Also unclear why the spectrogram is the way it is for this file).

janstary commented 3 months ago

To confirm, sndfile-spectrogram dial1.audio 640 480 file.png never finishes, eats up the CPU, and does not produce a file. This is on OpenBSD 7.5/amd64.

janstary commented 3 months ago

@coypoop : How did you even get the spectrogram, if it never finishes?

coypoop commented 3 months ago

I don't remember, I might have edited the code to avoid the infinite loop.