lib/chromaprint/DecoderClient: add assertion
This commit is contained in:
parent
d942f874ae
commit
3824bf66ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue