1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-21 00:35:05 +02:00

compute_lpc_coefs: assert that normalize and fail have a supported combination

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-14 21:53:29 +02:00
parent 93ef29b6f4
commit a6cac64f69

View File

@ -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++;