Merge branch 'v0.18.x'

This commit is contained in:
Max Kellermann
2014-08-21 12:52:27 +02:00
3 changed files with 3 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ dsf_decode_chunk(Decoder &decoder, InputStream &is,
const unsigned buffer_samples = buffer_frames * frame_size;
const size_t buffer_size = buffer_samples * sample_size;
while (chunk_size > 0) {
while (chunk_size >= frame_size) {
/* see how much aligned data from the remaining chunk
fits into the local buffer */
size_t now_size = buffer_size;