From: Kinsey Moore Date: Fri, 20 Jan 2012 16:50:50 +0000 (+0000) Subject: Restore LSF_check function calls from set/unused variable removal X-Git-Tag: 10.2.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6448474ae13fd29db6b7bf457cb0a1e5dfb4ee3c;p=thirdparty%2Fasterisk.git Restore LSF_check function calls from set/unused variable removal These functions are not noops and modify the array that is passed in. Thanks for the catch Richard. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@351818 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/codecs/ilbc/LPCencode.c b/codecs/ilbc/LPCencode.c index 8e83dab78b..09c6909586 100644 --- a/codecs/ilbc/LPCencode.c +++ b/codecs/ilbc/LPCencode.c @@ -231,7 +231,7 @@ - + LSF_check(lsfdeq, LPC_FILTERORDER, iLBCenc_inst->lpc_n); SimpleInterpolateLSF(syntdenum, weightdenum, lsf, lsfdeq, iLBCenc_inst->lsfold, iLBCenc_inst->lsfdeqold, LPC_FILTERORDER, iLBCenc_inst); diff --git a/codecs/ilbc/iLBC_decode.c b/codecs/ilbc/iLBC_decode.c index d84ccb8df3..978d480ec1 100644 --- a/codecs/ilbc/iLBC_decode.c +++ b/codecs/ilbc/iLBC_decode.c @@ -499,6 +499,8 @@ /* decode the lsf */ SimplelsfDEQ(lsfdeq, lsf_i, iLBCdec_inst->lpc_n); + LSF_check(lsfdeq, LPC_FILTERORDER, + iLBCdec_inst->lpc_n); DecoderInterpolateLSF(syntdenum, weightdenum, lsfdeq, LPC_FILTERORDER, iLBCdec_inst);