From patchwork Tue Jun 1 07:33:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 28031 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp3579591iof; Tue, 1 Jun 2021 00:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQHaAJI+YNglUqOtjcZXkdRsivMLCCoNkCxzD03ApWH8R56DwD67381VsBHHUcNLji7BVE X-Received: by 2002:a17:906:a1d2:: with SMTP id bx18mr27475023ejb.423.1622532867760; Tue, 01 Jun 2021 00:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622532867; cv=none; d=google.com; s=arc-20160816; b=JnvL60cPpDun5LlofGb/1S9xLwkhwGWlI7+o/D1e96rIMn0x7ZH7S7dqbniyaz8wHZ FlrrjossGbV4902gJoAGBxnPjFzrZNJJG1dyrvyOd1pB62KwWRfDxKm+mJLNrRofe+g5 Sso3RrmgFrJtyDItZoWa+hKs2Z5nO6KtwfUuDp/0xbswwDCvVVTpZaEgbLWUAZTxbLSI uer5PeR6WNQ1PFfEInWD/xyRkAZzL8iMDajRZVSJAK+ZGW/1Q6phBRCqh754b8WBm2xF /GG56HpSoXFxkw7eAa+Munu2By8uXuoq+331FVeabv8PxPc04F7sxjiIBz7nU6oUl6eL LkJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to; bh=IP8T6Lcxn/zKRXZ15DsMmt4qP2DpCtXBZLrwhsUtdqc=; b=wTDRWyzE9oK3s5gLdQ10oIDOWGr0JyuqQy6HTRmXm2c6vMY54fPy2eyHCjAdodz6CA 1WeuyoeKCmOJrLvCoiIabEOEOG8yYfVD6saqGBA086mPlqEOL2g2QvPF/PoIX5vaLpqb clJyMLFlZ1rACpf+bFAqTJTYtsJQoJqQ8zO4fegQ4EEtbVGYPfyAhEpt+DRSkpNVzQYN HxBpI/Dst9Yu8ezbX1NaY2DKS//uO1DQitbb9Fq4X6FPR2j05fU6kWF2/AsmfS04v2TU DCW5qeSI5MKzJgK/N6J6z9g4vD91E2PRwNNo8bDcs8m4gIf0EO+s2ywwrElUO86JFk8T xTgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id rv25si3590517ejb.507.2021.06.01.00.34.27; Tue, 01 Jun 2021 00:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8E87B689ADA; Tue, 1 Jun 2021 10:34:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe01-3.mx.upcmail.net (vie01a-dmta-pe01-3.mx.upcmail.net [62.179.121.156]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 03672687FB2 for ; Tue, 1 Jun 2021 10:34:16 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe01.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1lnyum-00H459-0H for ffmpeg-devel@ffmpeg.org; Tue, 01 Jun 2021 09:34:16 +0200 Received: from localhost ([213.47.68.29]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id nytnlkHhdljeHnytnloUMv; Tue, 01 Jun 2021 09:33:16 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.3 cv=BoHjPrf5 c=1 sm=1 tr=0 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=6-4D4cA37CFF9fgu8eoA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 1 Jun 2021 09:33:13 +0200 Message-Id: <20210601073315.9104-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-CMAE-Envelope: MS4wfHrn/vzEyqFNORWLg7katG3x+A1a11ejv++u95vdi9Abyx4VkKJVSMfUJeEZhQlonR42KMa7+ihGzPU056GQgTFfaVH7KUrKeR6ishcmEeRtlIoboKTw wHa/x5mtrqp4u9AzBM3xkJZ23WxDRnIjom2ZaicnsDxj6EuKcEMK32yn Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/lpc: check for zero err in normalization in compute_lpc_coefs() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: eTvYbLgx9Pk0 Fixes: floating point division by 0 Fixes: Ticket8213 Signed-off-by: Michael Niedermayer --- libavcodec/lpc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h index 52170fd623..c99e568794 100644 --- a/libavcodec/lpc.h +++ b/libavcodec/lpc.h @@ -186,7 +186,8 @@ static inline int AAC_RENAME(compute_lpc_coefs)(const LPC_TYPE *autoc, int max_o for(j=0; j