]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5230 --resolve this was actually a bug in the -1 val in send_silence_when_idle
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Mar 2013 18:52:03 +0000 (13:52 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Mar 2013 18:52:03 +0000 (13:52 -0500)
src/switch_resample.c

index 6722d6f448365a98456c0473e2de5e6909d344ba..9e7c07117a67f81c34c258324a87fb7800dd49f7 100644 (file)
@@ -191,7 +191,7 @@ SWITCH_DECLARE(void) switch_generate_sln_silence(int16_t *data, uint32_t samples
        assert(divisor);
 
        if (divisor == (uint32_t)-1) {
-               memset(data, 0, sizeof(*data));
+               memset(data, 0, samples * 2);
                return;
        }