From e0db1f51d6ddf9eb2c1314c23d063a29255b607a Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 31 May 2024 09:38:27 -0300 Subject: [PATCH] avcodec/lpc: account for odd len values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: RĂ©mi Denis-Courmont Signed-off-by: James Almer --- libavcodec/lpc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index dfd6114690..e793e54038 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -120,9 +120,8 @@ static void lpc_compute_autocorr_c(const double *data, ptrdiff_t len, int lag, if(j==lag){ double sum = 1.0; - for(i=j-1; i