aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index 953b1a54e..5fb8ab0b9 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -228,6 +228,7 @@ bool playAudio(const char *buffer, size_t length)
bool ret = false;
unsigned int i;
+ assert(length > 0);
/* no partial frames allowed */
assert((length % audio_format_frame_size(&input_audio_format)) == 0);