summaryrefslogtreecommitdiffstats
path: root/libavcodec/lpc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-28 03:27:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-10-28 03:27:16 +0100
commitc4a36b6f70f37e668874d134f955eb96e23853c9 (patch)
tree83b2828a9570d4077acb3dd6ca4903fc94800e74 /libavcodec/lpc.c
parent8edf9b1fa44dbcc807e9298ce97791a12df85956 (diff)
downloadffmpeg-streaming-c4a36b6f70f37e668874d134f955eb96e23853c9.zip
ffmpeg-streaming-c4a36b6f70f37e668874d134f955eb96e23853c9.tar.gz
lpc: check that lpc_type is valid in ff_lpc_calc_coefs
Fixes CID700759 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r--libavcodec/lpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index c8d24c0..5ccd5a8 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) {
OpenPOWER on IntegriCloud