diff --git a/src/lib/chromaprint/DecoderClient.cxx b/src/lib/chromaprint/DecoderClient.cxx index 35f47e840..2081db1e8 100644 --- a/src/lib/chromaprint/DecoderClient.cxx +++ b/src/lib/chromaprint/DecoderClient.cxx @@ -68,6 +68,8 @@ ChromaprintDecoderClient::SubmitData(InputStream *, const void *_data, size_t length, uint16_t) noexcept { + assert(ready); + if (length > remaining_bytes) remaining_bytes = 0; else