From 3cfe88194a6ea8c720dfc85239d03c659473bcc3 Mon Sep 17 00:00:00 2001
From: Patrik Kullman <patrik@yes.nu>
Date: Fri, 13 Feb 2009 22:05:55 +0000
Subject: [PATCH] lpc: Remove false positive compilation warning about weight
 being uninitialized. Patch by Patrik Kullman (patrik A yes D nu).

Originally committed as revision 17218 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/lpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 92c701beab1..896db51759d 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -123,7 +123,7 @@ int ff_lpc_calc_coefs(DSPContext *s,
             ref[i] = fabs(lpc[i][i]);
     }else{
         LLSModel m[2];
-        double var[MAX_LPC_ORDER+1], weight;
+        double var[MAX_LPC_ORDER+1], av_uninit(weight);
 
         for(pass=0; pass<use_lpc-1; pass++){
             av_init_lls(&m[pass&1], max_order);
-- 
GitLab