[FFmpeg-cvslog] r17218 - trunk/libavcodec/lpc.c

jbr subversion
Fri Feb 13 23:05:55 CET 2009


Author: jbr
Date: Fri Feb 13 23:05:55 2009
New Revision: 17218

Log:
lpc: Remove false positive compilation warning about weight being 
uninitialized. Patch by Patrik Kullman (patrik A yes D nu).

Modified:
   trunk/libavcodec/lpc.c

Modified: trunk/libavcodec/lpc.c
==============================================================================
--- trunk/libavcodec/lpc.c	Fri Feb 13 23:03:11 2009	(r17217)
+++ trunk/libavcodec/lpc.c	Fri Feb 13 23:05:55 2009	(r17218)
@@ -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);




More information about the ffmpeg-cvslog mailing list