1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lpc: check that lpc_type is valid in ff_lpc_calc_coefs

Fixes CID700759
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-28 03:27:16 +01:00
parent 8edf9b1fa4
commit c4a36b6f70

View File

@ -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) {