From 94dfef6e78e181b21dd17ca74066dbb25d8a976e Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 10 Feb 2019 23:16:46 +0100 Subject: [PATCH] [input] Return quality flag even if read size is zero First input_read() has bufsize 0, because we don't know quality yet --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 9bdea003..cda5f13b 100644 --- a/src/input.c +++ b/src/input.c @@ -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)