From e3e7a3c680b3fe659312b00899198d9190993284 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Jan 2009 18:47:13 +0100 Subject: decoder_api: added assertion on partial frames Decoder plugins must not send partial frames. --- src/decoder_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decoder_api.c b/src/decoder_api.c index 0a9bc2368..dc6f7589b 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -205,6 +205,7 @@ decoder_data(struct decoder *decoder, char *data; assert(dc.state == DECODE_STATE_DECODE); + assert(length % audio_format_frame_size(&dc.in_audio_format) == 0); if (dc.command == DECODE_COMMAND_STOP || dc.command == DECODE_COMMAND_SEEK || -- cgit v1.2.3