diff options
Diffstat (limited to 'plugins/sndfile/sndfile.c')
-rw-r--r-- | plugins/sndfile/sndfile.c | 2 |
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 { |