summaryrefslogtreecommitdiffstats
path: root/libavcodec/lpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/lpc.h')
-rw-r--r--libavcodec/lpc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h
index 680e102..b9c35bd 100644
--- a/libavcodec/lpc.h
+++ b/libavcodec/lpc.h
@@ -23,6 +23,7 @@
#define AVCODEC_LPC_H
#include <stdint.h>
+#include "libavutil/avassert.h"
#include "dsputil.h"
#define ORDER_METHOD_EST 0
@@ -122,6 +123,8 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order,
LPC_TYPE err;
LPC_TYPE *lpc_last = lpc;
+ av_assert2(normalize || !fail);
+
if (normalize)
err = *autoc++;
OpenPOWER on IntegriCloud