From 6448474ae13fd29db6b7bf457cb0a1e5dfb4ee3c Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Fri, 20 Jan 2012 16:50:50 +0000 Subject: [PATCH] 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 --- codecs/ilbc/LPCencode.c | 2 +- codecs/ilbc/iLBC_decode.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.2