From 85f4aeca05ba51e3081fe0ddc7f463d64be5dce8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Jul 2014 20:39:55 +0200 Subject: decoder/dsdiff: ignore garbage null byte at end of file Failure to read another chunk header is not fatal. Continue to read metadata. --- src/decoder/DsdiffDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/decoder/DsdiffDecoderPlugin.cxx b/src/decoder/DsdiffDecoderPlugin.cxx index 4eee71711..dba921de5 100644 --- a/src/decoder/DsdiffDecoderPlugin.cxx +++ b/src/decoder/DsdiffDecoderPlugin.cxx @@ -294,7 +294,7 @@ dsdiff_read_metadata_extra(Decoder *decoder, InputStream &is, if (is.GetOffset() < size) { if (!dsdiff_read_chunk_header(decoder, is, chunk_header)) - return false; + break; } } /* done processing chunk headers, process tags if any */ -- cgit v1.2.3