From fd02c87fa2186c1151a2f5ff41115d83b5aedb63 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 30 Jan 2015 22:55:50 +0100 Subject: decoder/DsdLib: don't use InputStream::GetOffset() after seeking We already know the offset. --- src/decoder/plugins/DsdLib.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/decoder/plugins/DsdLib.cxx') diff --git a/src/decoder/plugins/DsdLib.cxx b/src/decoder/plugins/DsdLib.cxx index 416439fef..664bf60ce 100644 --- a/src/decoder/plugins/DsdLib.cxx +++ b/src/decoder/plugins/DsdLib.cxx @@ -117,11 +117,10 @@ dsdlib_tag_id3(InputStream &is, /* Prevent broken files causing problems */ const auto size = is.GetSize(); - const auto offset = is.GetOffset(); - if (offset >= size) + if (tagoffset >= size) return; - const id3_length_t count = size - offset; + const id3_length_t count = size - tagoffset; if (count < 10 || count > 1024 * 1024) return; -- cgit v1.2.3