From: Jeff Peeler Date: Wed, 2 Jun 2010 17:29:35 +0000 (+0000) Subject: Fix infinite loop when loading codec speex X-Git-Tag: 11.0.0-beta1~2935 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9467341cdc8b29b03ca0cf2ac894f091cfa50b7;p=thirdparty%2Fasterisk.git Fix infinite loop when loading codec speex This changes the sample slinear frame data to contain non-zero data so that translation calculations for speex works when preprocessing and VAD is turned on. The encoder expects samples to be returned, but when attempted with the mentioned two options and silent sample frames everything was discarded. (closes issue #17240) Reported by: seandarcy Review: https://reviewboard.asterisk.org/r/682/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@267065 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/slin.h b/include/asterisk/slin.h index 5ba5af5800..3f6737f15d 100644 --- a/include/asterisk/slin.h +++ b/include/asterisk/slin.h @@ -16,70 +16,46 @@ * at the top of the source tree. */ +/* Source: beep.gsm + * Converted to beep.sln via file convert, then converted to hex: + * od -An -tx1 beep.sln | awk '{for (i=1; i