From 5d2dd908484d062bdb7ebe31c4fcf4584cac8168 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sun, 31 Aug 2008 02:31:05 +0000 Subject: Merge declaration and initialization of a few vars in compute_lpc_coefs() Originally committed as revision 15088 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/lpc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libavcodec/lpc.c') diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 00a64acf75..044a9ab678 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -32,13 +32,11 @@ static void compute_lpc_coefs(const double *autoc, int max_order, double lpc[][MAX_LPC_ORDER], double *ref) { int i, j, i2; - double r, err, tmp; + double err = autoc[0]; double lpc_tmp[MAX_LPC_ORDER]; - err = autoc[0]; - for(i=0; i> 1); lpc_tmp[i] = r; for(j=0; j