decoder/dsdiff: ignore garbage null byte at end of file

Failure to read another chunk header is not fatal.  Continue to read
metadata.
This commit is contained in:
Max Kellermann 2014-07-12 20:39:55 +02:00
parent 7db84a961a
commit 85f4aeca05

View File

@ -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 */