From: Anthony Minessale Date: Wed, 21 Feb 2007 17:59:08 +0000 (+0000) Subject: make ilbc fail the call when the frame is wrong X-Git-Tag: v1.0-beta1~1037 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca710d2522ed36b8f9fd94d05e3555acbdb69cb;p=thirdparty%2Ffreeswitch.git make ilbc fail the call when the frame is wrong git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4342 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/codecs/mod_ilbc/mod_ilbc.c b/src/mod/codecs/mod_ilbc/mod_ilbc.c index 6765c1a9c5..dc69c5e2d3 100644 --- a/src/mod/codecs/mod_ilbc/mod_ilbc.c +++ b/src/mod/codecs/mod_ilbc/mod_ilbc.c @@ -178,6 +178,7 @@ static switch_status_t switch_ilbc_decode(switch_codec_t *codec, } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "yo this frame is an odd size [%d]\n", encoded_data_len); + return SWITCH_STATUS_FALSE; } return SWITCH_STATUS_SUCCESS; }