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 */
|
/* 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user