From d61920b6d9623a16226bbdfabafaa6e5e13b7946 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Fri, 20 Jan 2012 16:52:20 +0000 Subject: 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. ........ Merged revisions 351818 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351819 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- codecs/ilbc/LPCencode.c | 2 +- codecs/ilbc/iLBC_decode.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'codecs') diff --git a/codecs/ilbc/LPCencode.c b/codecs/ilbc/LPCencode.c index 8e83dab78..09c690958 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 d84ccb8df..978d480ec 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); -- cgit v1.2.3