summaryrefslogtreecommitdiff
path: root/plugins/sndfile
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-03 18:34:13 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-03 18:34:13 +0100
commitfa519319f3c31f7ca63740c953c35dd4dc9e4b4a (patch)
tree6ef9ed18d2db6c3a989d81f65f84c999c4b5e602 /plugins/sndfile
parentde5bcbefc5817688baa32f85d7940ea8f41ba6e8 (diff)
compiler warning cleanup
Diffstat (limited to 'plugins/sndfile')
-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 {