diff options
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r-- | src/decoder/plugins/FaadDecoderPlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder/plugins/FaadDecoderPlugin.cxx b/src/decoder/plugins/FaadDecoderPlugin.cxx index 90e5dc40f..83fab7f9e 100644 --- a/src/decoder/plugins/FaadDecoderPlugin.cxx +++ b/src/decoder/plugins/FaadDecoderPlugin.cxx @@ -219,10 +219,10 @@ faad_song_duration(DecoderBuffer *buffer, InputStream &is) (data.data[7 + skip_size] & 0xE0); const auto size = is.GetSize(); - if (bit_rate != 0) - return size * 8.0 / bit_rate; - else - return size; + if (bit_rate == 0) + return -1; + + return size * 8.0 / bit_rate; } else return -1; } |