Commit fd02c87f authored by Max Kellermann's avatar Max Kellermann

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

We already know the offset.
parent 63ac81c8
...@@ -117,11 +117,10 @@ dsdlib_tag_id3(InputStream &is, ...@@ -117,11 +117,10 @@ dsdlib_tag_id3(InputStream &is,
/* Prevent broken files causing problems */ /* Prevent broken files causing problems */
const auto size = is.GetSize(); const auto size = is.GetSize();
const auto offset = is.GetOffset(); if (tagoffset >= size)
if (offset >= size)
return; return;
const id3_length_t count = size - offset; const id3_length_t count = size - tagoffset;
if (count < 10 || count > 1024 * 1024) if (count < 10 || count > 1024 * 1024)
return; return;
......
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