diff options
Diffstat (limited to 'src/decoder/mikmod_plugin.c')
-rw-r--r-- | src/decoder/mikmod_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder/mikmod_plugin.c b/src/decoder/mikmod_plugin.c index 1d5be2970..c01395772 100644 --- a/src/decoder/mikmod_plugin.c +++ b/src/decoder/mikmod_plugin.c @@ -22,6 +22,7 @@ #include <glib.h> #include <mikmod.h> +#include <assert.h> #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "mikmod" @@ -177,6 +178,7 @@ mod_decode(struct decoder *decoder, const char *path) } audio_format_init(&audio_format, 44100, 16, 2); + assert(audio_format_valid(&audio_format)); secPerByte = 1.0 / ((audio_format.bits * audio_format.channels / 8.0) * |