From da6f8c270a6f8affddc4ad9fd239cf20fa8c12a4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Jan 2009 18:53:32 +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(+) (limited to 'src/decoder_api.c') diff --git a/src/decoder_api.c b/src/decoder_api.c index 4e34db71d..da61f3110 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -197,6 +197,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