[input] Return quality flag even if read size is zero

First input_read() has bufsize 0, because we don't know quality yet
This commit is contained in:
ejurgensen 2019-02-10 23:16:46 +01:00
parent 0cb3881621
commit 94dfef6e78

View File

@ -323,7 +323,7 @@ input_read(void *data, size_t size, short *flags)
// with multiple markers, and we don't return data that contains mixed sample
// rates, bits per sample or an EOF in the middle.
marker = input_buffer.marker_tail;
if (marker && marker->pos < input_buffer.bytes_read + size)
if (marker && marker->pos <= input_buffer.bytes_read + size)
{
*flags = marker->flags;
if (*flags & INPUT_FLAG_QUALITY)