diff options
author | Max Kellermann <max@duempel.org> | 2014-07-12 20:39:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-12 20:41:26 +0200 |
commit | 85f4aeca05ba51e3081fe0ddc7f463d64be5dce8 (patch) | |
tree | 056ddb277242281dd354aa215c99c0b3be0a3324 /src/decoder/DsdiffDecoderPlugin.cxx | |
parent | 7db84a961aa117d8e8d355819fc70f91670ca956 (diff) | |
download | mpd-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/decoder/DsdiffDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/DsdiffDecoderPlugin.cxx | 2 |
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 */ |