If 'fail' is set but 'normalize' is not, this can lead to use of 'err' when it
has not been initialized. This combination does not make sense anyway, and
initializing 'err' to 0 will return an error in the first check in that
situation.
---
libavcodec/lpc.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h
index cbee46f..089f00c 100644
--- a/libavcodec/lpc.h
+++ b/libavcodec/lpc.h
@@ -119,7 +119,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)
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel