aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-19 20:38:59 +0200
committerMax Kellermann <max@duempel.org>2014-08-19 20:44:29 +0200
commit43a1a0f3abaa553fcff0c38986205ed717863c2a (patch)
treeedaa0877154862d1cf8780bc19757e623a82734a /src/decoder/plugins
parente88524f274093d594978297ff28999daf1d19416 (diff)
downloadmpd-43a1a0f3abaa553fcff0c38986205ed717863c2a.tar.gz
mpd-43a1a0f3abaa553fcff0c38986205ed717863c2a.tar.xz
mpd-43a1a0f3abaa553fcff0c38986205ed717863c2a.zip
decoder/faad: remove size!=0 check
Since we already checked InputStream::KnownSize(), we can assume that GetSize() returns a valid value, and this check is obsolete.
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/FaadDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/FaadDecoderPlugin.cxx b/src/decoder/plugins/FaadDecoderPlugin.cxx
index 21351f2ba..85bb69ad9 100644
--- a/src/decoder/plugins/FaadDecoderPlugin.cxx
+++ b/src/decoder/plugins/FaadDecoderPlugin.cxx
@@ -220,7 +220,7 @@ faad_song_duration(DecoderBuffer *buffer, InputStream &is)
const auto size = is.GetSize();
const size_t fileread = size >= 0 ? size : 0;
- if (fileread != 0 && bit_rate != 0)
+ if (bit_rate != 0)
return fileread * 8.0 / bit_rate;
else
return fileread;