]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make ilbc fail the call when the frame is wrong
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 21 Feb 2007 17:59:08 +0000 (17:59 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 21 Feb 2007 17:59:08 +0000 (17:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4342 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_ilbc/mod_ilbc.c

index 6765c1a9c5abd90310ab3ef03d5a4da1687ec2c6..dc69c5e2d303db982a40c5462fb0fa3a3792e534 100644 (file)
@@ -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;
 }