aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-16 18:53:32 +0100
committerMax Kellermann <max@duempel.org>2009-01-16 18:53:32 +0100
commitda6f8c270a6f8affddc4ad9fd239cf20fa8c12a4 (patch)
tree2aaf8e9f57bb55250738adc2e5aef5249b622069
parent953b258e5eb8e93adb13046c5ae8a61934d35f61 (diff)
downloadmpd-da6f8c270a6f8affddc4ad9fd239cf20fa8c12a4.tar.gz
mpd-da6f8c270a6f8affddc4ad9fd239cf20fa8c12a4.tar.xz
mpd-da6f8c270a6f8affddc4ad9fd239cf20fa8c12a4.zip
decoder_api: added assertion on partial frames
Decoder plugins must not send partial frames.
Diffstat (limited to '')
-rw-r--r--src/decoder_api.c1
1 files changed, 1 insertions, 0 deletions
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 ||