diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-14 21:53:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-14 22:16:31 +0200 |
commit | a6cac64f69bf526fe01840c0cd254436423e9e4b (patch) | |
tree | f5f64a7a79c3786e216c0996b4f31ff360c817aa /libavcodec/lpc.h | |
parent | 93ef29b6f47eda7d73eb9e71628f1f1abb64266d (diff) | |
download | ffmpeg-a6cac64f69bf526fe01840c0cd254436423e9e4b.tar.gz |
compute_lpc_coefs: assert that normalize and fail have a supported combination
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lpc.h')
-rw-r--r-- | libavcodec/lpc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h index 680e102713..b9c35bd303 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++; |