Module: libav
Branch: master
Commit: 60e0ee7ca25bd3bea54043b0607efe4cd51acaf3

Author:    Vittorio Giovara <[email protected]>
Committer: Vittorio Giovara <[email protected]>
Date:      Wed Nov 12 19:10:47 2014 +0100

lpc: always initialize ref and err

CC: [email protected]
Bug-Id: CID 29585 / CID 700759

---

 libavcodec/lpc.c |    2 +-
 libavcodec/lpc.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index fbd1bdf..1482e57 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -174,7 +174,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
                       int omethod, int max_shift, int zero_shift)
 {
     double autoc[MAX_LPC_ORDER+1];
-    double ref[MAX_LPC_ORDER];
+    double ref[MAX_LPC_ORDER] = { 0 };
     double lpc[MAX_LPC_ORDER][MAX_LPC_ORDER];
     int i, j, pass = 0;
     int opt_order;
diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h
index c41a1f8..6b3f80e 100644
--- a/libavcodec/lpc.h
+++ b/libavcodec/lpc.h
@@ -152,7 +152,7 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, 
int max_order,
                                     int normalize)
 {
     int i, j;
-    LPC_TYPE err;
+    LPC_TYPE err = { 0 };
     LPC_TYPE *lpc_last = lpc;
 
     if (normalize)

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to