decoder/DsdLib: check InputStream::KnownSize()

This commit is contained in:
Max Kellermann 2014-08-19 20:12:31 +02:00
parent 1307633a84
commit 3f34016888

View File

@ -109,7 +109,7 @@ dsdlib_tag_id3(InputStream &is,
{
assert(tagoffset >= 0);
if (tagoffset == 0)
if (tagoffset == 0 || !is.KnownSize())
return;
if (!dsdlib_skip_to(nullptr, is, tagoffset))