From f9467341cdc8b29b03ca0cf2ac894f091cfa50b7 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Wed, 2 Jun 2010 17:29:35 +0000 Subject: [PATCH] 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 --- include/asterisk/slin.h | 96 ++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 60 deletions(-) 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