Commit 43a1a0f3 authored by Max Kellermann's avatar Max Kellermann

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.
parent e88524f2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment