decoder/DsdLib: don't use InputStream::GetOffset() after seeking

We already know the offset.
This commit is contained in:
Max Kellermann 2015-01-30 22:55:50 +01:00
parent 63ac81c8f5
commit fd02c87fa2

View File

@ -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;