aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorLászló Áshin <kodest@gmail.com>2008-11-14 15:23:13 +0100
committerMax Kellermann <max@duempel.org>2008-11-14 15:23:13 +0100
commitc495c6f5afefaf37fea4288b42ec6d63d054679b (patch)
treeb638951790474b68ba88dc7b643f41b474412db8 /src/decoder
parented6f60460d131eb6eb7fd0a281ab1a5ea4d58141 (diff)
downloadmpd-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 'src/decoder')
-rw-r--r--src/decoder/wavpack_plugin.c2
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);
}
/**