[Asterisk-cvs] asterisk/codecs codec_adpcm.c,1.7.2.1,1.7.2.2

markster at lists.digium.com markster at lists.digium.com
Thu Mar 11 16:03:50 CST 2004


Update of /usr/cvsroot/asterisk/codecs
In directory mongoose.digium.com:/tmp/cvs-serv30558/codecs

Modified Files:
      Tag: v1-0_stable
	codec_adpcm.c 
Log Message:
By default, disable non-standard return code


Index: codec_adpcm.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/codec_adpcm.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -d -r1.7.2.1 -r1.7.2.2
--- codec_adpcm.c	11 Mar 2004 19:57:34 -0000	1.7.2.1
+++ codec_adpcm.c	11 Mar 2004 20:56:56 -0000	1.7.2.2
@@ -104,6 +104,8 @@
 	*signal = -2047;
 
   *next = 0;
+
+#ifdef AUTO_RETURN
   if( encoded & 0x7 )
         *rkey = 0;
   else if ( ++(*rkey) == 24 ) {
@@ -113,6 +115,7 @@
 	else if (*signal < 0)
 		*next = 0x2;
   }
+#endif
 
   *ssindex = *ssindex + indsft[(encoded & 7)];
   if (*ssindex < 0)




More information about the svn-commits mailing list