summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-03-12 20:32:04 +0100
committerMax Kellermann <max@musicpd.org>2020-03-12 20:32:07 +0100
commit3824bf66cae70b448dd8b99252fc3e823b40e150 (patch)
treedfdec1f0d3a00a1289ea82e27dfa0079a3f5a491 /src/lib
parentd942f874ae1ddb131e846eee89f6e6037b3f0e6f (diff)
lib/chromaprint/DecoderClient: add assertion
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/chromaprint/DecoderClient.cxx2
1 files changed, 2 insertions, 0 deletions
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