By default disable non-standard changes
authorMark Spencer <markster@digium.com>
Thu, 11 Mar 2004 20:56:26 +0000 (20:56 +0000)
committerMark Spencer <markster@digium.com>
Thu, 11 Mar 2004 20:56:26 +0000 (20:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2402 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_adpcm.c

index 0a94960..6ca656a 100755 (executable)
@@ -104,6 +104,8 @@ decode (unsigned char encoded, short *ssindex, short *signal, unsigned char *rke
        *signal = -2047;
 
   *next = 0;
+
+#ifdef AUTO_RETURN
   if( encoded & 0x7 )
         *rkey = 0;
   else if ( ++(*rkey) == 24 ) {
@@ -113,6 +115,7 @@ decode (unsigned char encoded, short *ssindex, short *signal, unsigned char *rke
        else if (*signal < 0)
                *next = 0x2;
   }
+#endif
 
   *ssindex = *ssindex + indsft[(encoded & 7)];
   if (*ssindex < 0)