From 39c13b1d5d10d35e33b4b9bfbb87afbd51757e68 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 10 Sep 2008 15:32:35 +0000 Subject: [PATCH] fix MODFORM-12 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9502 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 7abade5c6a..af8b3158e6 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -91,6 +91,11 @@ static inline void free_context(shout_context_t *context) int len; int16_t blank[2048] = {0}, *r = NULL; + + if (context->channels == 2) { + r = blank; + } + len = lame_encode_buffer(context->gfp, blank, r, sizeof(blank) / 2, mp3buffer, sizeof(mp3buffer)); if (len) {