decoder/DsdLib: don't use InputStream::GetOffset() after seeking
We already know the offset.
This commit is contained in:
parent
63ac81c8f5
commit
fd02c87fa2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user