From: Anthony Minessale Date: Tue, 16 Sep 2014 21:14:54 +0000 (+0500) Subject: can't have asserts here after all X-Git-Tag: v1.4.8~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16d947dd7aacf1717afe399f53e8a9d34edd933e;p=thirdparty%2Ffreeswitch.git can't have asserts here after all --- diff --git a/src/switch_resample.c b/src/switch_resample.c index dcb5d1610e..ed584e39af 100644 --- a/src/switch_resample.c +++ b/src/switch_resample.c @@ -191,7 +191,6 @@ SWITCH_DECLARE(void) switch_generate_sln_silence(int16_t *data, uint32_t samples if (channels == 0) channels = 1; - switch_assert((samples * channels * 2) < SWITCH_RECOMMENDED_BUFFER_SIZE); assert(divisor); if (divisor == (uint32_t)-1) { @@ -261,8 +260,7 @@ SWITCH_DECLARE(void) switch_mux_channels(int16_t *data, switch_size_t samples, u uint32_t j = 0; switch_assert(channels < 11); - switch_assert((samples * channels * 2) < SWITCH_RECOMMENDED_BUFFER_SIZE); - + if (orig_channels > channels) { for (i = 0; i < samples; i++) { int32_t z = 0;