diff options
author | Max Kellermann <max@duempel.org> | 2009-01-16 18:47:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-16 18:47:13 +0100 |
commit | e3e7a3c680b3fe659312b00899198d9190993284 (patch) | |
tree | 04c66ede74bff2eb66a2ed22116acc62569b0f05 | |
parent | 6c7173c54f13523bd8c9544274ad72b1a785b758 (diff) | |
download | mpd-e3e7a3c680b3fe659312b00899198d9190993284.tar.gz mpd-e3e7a3c680b3fe659312b00899198d9190993284.tar.xz mpd-e3e7a3c680b3fe659312b00899198d9190993284.zip |
decoder_api: added assertion on partial frames
Decoder plugins must not send partial frames.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 || |