From c4a36b6f70f37e668874d134f955eb96e23853c9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 28 Oct 2012 03:27:16 +0100 Subject: [PATCH] lpc: check that lpc_type is valid in ff_lpc_calc_coefs Fixes CID700759 Signed-off-by: Michael Niedermayer --- libavcodec/lpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index c8d24c03f3..5ccd5a8e08 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -226,7 +226,8 @@ int ff_lpc_calc_coefs(LPCContext *s, } for(i=max_order-1; i>0; i--) ref[i] = ref[i-1] - ref[i]; - } + } else + av_assert0(0); opt_order = max_order; if(omethod == ORDER_METHOD_EST) {