mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lpc: always initialize ref and err
CC: libav-stable@libav.org Bug-Id: CID 29585 / CID 700759
This commit is contained in:
parent
3a6ddfb874
commit
60e0ee7ca2
@ -174,7 +174,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
|
|||||||
int omethod, int max_shift, int zero_shift)
|
int omethod, int max_shift, int zero_shift)
|
||||||
{
|
{
|
||||||
double autoc[MAX_LPC_ORDER+1];
|
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];
|
double lpc[MAX_LPC_ORDER][MAX_LPC_ORDER];
|
||||||
int i, j, pass = 0;
|
int i, j, pass = 0;
|
||||||
int opt_order;
|
int opt_order;
|
||||||
|
@ -152,7 +152,7 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order,
|
|||||||
int normalize)
|
int normalize)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
LPC_TYPE err;
|
LPC_TYPE err = { 0 };
|
||||||
LPC_TYPE *lpc_last = lpc;
|
LPC_TYPE *lpc_last = lpc;
|
||||||
|
|
||||||
if (normalize)
|
if (normalize)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user