aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 20:39:55 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 20:41:26 +0200
commit85f4aeca05ba51e3081fe0ddc7f463d64be5dce8 (patch)
tree056ddb277242281dd354aa215c99c0b3be0a3324 /src
parent7db84a961aa117d8e8d355819fc70f91670ca956 (diff)
downloadmpd-85f4aeca05ba51e3081fe0ddc7f463d64be5dce8.tar.gz
mpd-85f4aeca05ba51e3081fe0ddc7f463d64be5dce8.tar.xz
mpd-85f4aeca05ba51e3081fe0ddc7f463d64be5dce8.zip
decoder/dsdiff: ignore garbage null byte at end of file
Failure to read another chunk header is not fatal. Continue to read metadata.
Diffstat (limited to 'src')
-rw-r--r--src/decoder/DsdiffDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
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 */