lib/chromaprint/DecoderClient: add assertion

This commit is contained in:
Max Kellermann 2020-03-12 20:32:04 +01:00
parent d942f874ae
commit 3824bf66ca
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ ChromaprintDecoderClient::SubmitData(InputStream *,
const void *_data, size_t length, const void *_data, size_t length,
uint16_t) noexcept uint16_t) noexcept
{ {
assert(ready);
if (length > remaining_bytes) if (length > remaining_bytes)
remaining_bytes = 0; remaining_bytes = 0;
else else