Mercurial > libavcodec.hg
comparison lpc.c @ 8826:bffe8e6cb10e libavcodec
lpc: Remove false positive compilation warning about weight being
uninitialized. Patch by Patrik Kullman (patrik A yes D nu).
| author | jbr |
|---|---|
| date | Fri, 13 Feb 2009 22:05:55 +0000 |
| parents | 51274aff81fe |
| children | 94595d0e617c |
comparison
equal
deleted
inserted
replaced
| 8825:51274aff81fe | 8826:bffe8e6cb10e |
|---|---|
| 121 | 121 |
| 122 for(i=0; i<max_order; i++) | 122 for(i=0; i<max_order; i++) |
| 123 ref[i] = fabs(lpc[i][i]); | 123 ref[i] = fabs(lpc[i][i]); |
| 124 }else{ | 124 }else{ |
| 125 LLSModel m[2]; | 125 LLSModel m[2]; |
| 126 double var[MAX_LPC_ORDER+1], weight; | 126 double var[MAX_LPC_ORDER+1], av_uninit(weight); |
| 127 | 127 |
| 128 for(pass=0; pass<use_lpc-1; pass++){ | 128 for(pass=0; pass<use_lpc-1; pass++){ |
| 129 av_init_lls(&m[pass&1], max_order); | 129 av_init_lls(&m[pass&1], max_order); |
| 130 | 130 |
| 131 weight=0; | 131 weight=0; |
