diff options
author | László Áshin <kodest@gmail.com> | 2008-11-14 15:23:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-14 15:23:13 +0100 |
commit | c495c6f5afefaf37fea4288b42ec6d63d054679b (patch) | |
tree | b638951790474b68ba88dc7b643f41b474412db8 /src/decoder/wavpack_plugin.c | |
parent | ed6f60460d131eb6eb7fd0a281ab1a5ea4d58141 (diff) | |
download | mpd-c495c6f5afefaf37fea4288b42ec6d63d054679b.tar.gz mpd-c495c6f5afefaf37fea4288b42ec6d63d054679b.tar.xz mpd-c495c6f5afefaf37fea4288b42ec6d63d054679b.zip |
wavpack: tolerate less decoded data than requested
Wavpack plugin doesn't stop decoding if a block couldn't be fully
decoded, rather it tries to go on.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/wavpack_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c index 40140173d..c771db621 100644 --- a/src/decoder/wavpack_plugin.c +++ b/src/decoder/wavpack_plugin.c @@ -215,7 +215,7 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek, replay_gain_info ); } - } while (samples_got != samples_requested); + } while (samples_got > 0); } /** |