From 3f340168889cd7461ecd7faa6d599bc216f9faf0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 19 Aug 2014 20:12:31 +0200 Subject: decoder/DsdLib: check InputStream::KnownSize() --- src/decoder/plugins/DsdLib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/plugins') diff --git a/src/decoder/plugins/DsdLib.cxx b/src/decoder/plugins/DsdLib.cxx index 086f9d4d6..b1e8c776f 100644 --- a/src/decoder/plugins/DsdLib.cxx +++ b/src/decoder/plugins/DsdLib.cxx @@ -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)) -- cgit v1.2.3