From 52edabf2cbcea64de4e176d9f5de916f572e97c0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 19 Aug 2014 20:40:11 +0200 Subject: decoder/faad: remove unnecessary cast to size_t --- src/decoder/plugins/FaadDecoderPlugin.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/decoder/plugins') diff --git a/src/decoder/plugins/FaadDecoderPlugin.cxx b/src/decoder/plugins/FaadDecoderPlugin.cxx index 85bb69ad9..90e5dc40f 100644 --- a/src/decoder/plugins/FaadDecoderPlugin.cxx +++ b/src/decoder/plugins/FaadDecoderPlugin.cxx @@ -219,11 +219,10 @@ faad_song_duration(DecoderBuffer *buffer, InputStream &is) (data.data[7 + skip_size] & 0xE0); const auto size = is.GetSize(); - const size_t fileread = size >= 0 ? size : 0; if (bit_rate != 0) - return fileread * 8.0 / bit_rate; + return size * 8.0 / bit_rate; else - return fileread; + return size; } else return -1; } -- cgit v1.2.3