Commit 3824bf66 authored by Max Kellermann's avatar Max Kellermann

lib/chromaprint/DecoderClient: add assertion

parent d942f874
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment