summaryrefslogtreecommitdiff
path: root/plugins/sndfile/sndfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sndfile/sndfile.c')
-rw-r--r--plugins/sndfile/sndfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sndfile/sndfile.c b/plugins/sndfile/sndfile.c
index 4af7b108..99f717cc 100644
--- a/plugins/sndfile/sndfile.c
+++ b/plugins/sndfile/sndfile.c
@@ -113,7 +113,7 @@ sndfile_init (DB_playItem_t *it) {
}
// hack bitrate
float sec = (float)(sfctx.endsample-sfctx.startsample) / inf.samplerate;
- if (sec != 0) {
+ if (sec > 0) {
sfctx.bitrate = fsize / sec * 8 / 1000;
}
else {