summaryrefslogtreecommitdiff
path: root/libavcodec/lpc.c
diff options
context:
space:
mode:
authorPatrik Kullman <patrik@yes.nu>2009-02-13 22:05:55 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-02-13 22:05:55 +0000
commit3cfe88194a6ea8c720dfc85239d03c659473bcc3 (patch)
treef36a2a4b83ecb58e16dba30f4dadfdd5d8e8bcff /libavcodec/lpc.c
parenteabe8c7033945d8042ebb75b08daed24d8852a10 (diff)
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
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r--libavcodec/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 92c701beab..896db51759 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);