Merge branch 'v0.20.x'

This commit is contained in:
Max Kellermann
2017-04-24 11:44:27 +02:00
8 changed files with 12 additions and 9 deletions

View File

@@ -43,7 +43,8 @@ FillBuffer(DecoderClient &client, InputStream &is, B &buffer)
{
buffer.Shift();
auto w = buffer.Write();
assert(!w.IsEmpty());
if (w.IsEmpty())
return true;
size_t nbytes = decoder_read(client, is, w.data, w.size);
if (nbytes == 0 && is.LockIsEOF())