From patchwork Sun Jun 11 14:07:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 3912 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.195 with SMTP id 186csp512536vsk; Sun, 11 Jun 2017 07:07:59 -0700 (PDT) X-Received: by 10.28.232.8 with SMTP id f8mr5063335wmh.51.1497190079656; Sun, 11 Jun 2017 07:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497190079; cv=none; d=google.com; s=arc-20160816; b=L2VtP8q/XPVi0z1rT7fCWS+ta+TUozl/c/uvcd+4jROJDjthVK1c/NdLubuHHuAP5l M0ReEGKmCJcc+66x4X3Is/6vPjp2lYg6UwRMrZE3xBu9qziWRvJ0d9dK1jAYQSqksZut SNqGKZyteIBBFI8MHWrapeYd/hw67bTYugUg/o1Tki0gZEaNYemdk9spazozb9V44yx2 aiFocnXHcaKmVf8xAO1vMqOyZpWGLbnSg3jOVGqY3RbsHjG+sUpLHQ4ejS1vVKX/a8t0 1TPdPgc1O3Yf0q/i5wVkEh0b1uR5JJ1+OllNihfKfutxcnBTFj7eDDJVVXK5rVqxGEs3 CRig== 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:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=CT1G259kul8Tahtky3yJ8MSI1nLP2dz6LZWxAqdWTC4=; b=OOHsBY6TfBmKxvq7ahqNoZmloka+cUMoNF8wsYWaRU47tt3S/djFr72MjTDEDkWNaA F/gJNryBACHfCyLQDXyvdDxbbBsfIR0ZZMY+2r1vulAnsOYWvXjJfss/vhmVpGzbALTp HWHy0nQlh99xScIs3iq24c/m20aXl17/XhwU7udnSwTWgRg9LwfR2TuZldkdC8aXfZwv ZDesZaA6RbbUVrJ2+sNZIm8tG3R0Fi5Ev8Ycu2mfbxqS92tpG9Ttu/YZ3/URY3COPfrF iZPMSthRWAd0EhCLfF247aUmO6r97TrIDY65EPGEwGczAKC7JNgM5kjc159PW9LftRXO Fbkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org; 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 39si6466705wrk.320.2017.06.11.07.07.59; Sun, 11 Jun 2017 07:07:59 -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; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org; 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 1647B689E11; Sun, 11 Jun 2017 17:07:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from btbn.de (btbn.de [5.9.118.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4B70B6882A7 for ; Sun, 11 Jun 2017 17:07:43 +0300 (EEST) Received: from localhost.localdomain (unknown [IPv6:2a02:8109:43f:959c:ba97:5aff:fe10:ec69]) by btbn.de (Postfix) with ESMTPSA id 7A8406A5B1; Sun, 11 Jun 2017 16:07:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothenpieler.org; s=mail; t=1497190064; bh=YIRXSvtrq5nH/f9ImaMZmIddmsphNzi9tZPpXq659bo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Nh5IaU7lD8UkN+RDX9CIl8cYzPSYKkYJxGBAU7wgGHyApjSkbowhEcIGKveubypMU 99l2dUnjdEo70lbenUT9qgxAILZtDR2IeDmqvh0C+mNoX/1V1au0PrHehYQHX+wEfs Kyzm3H2q2yLlgJxrOZzK6W/c1+Vdg4I3sXeajlvM= From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sun, 11 Jun 2017 16:07:25 +0200 Message-Id: <20170611140725.11936-2-timo@rothenpieler.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170611140725.11936-1-timo@rothenpieler.org> References: <20170611140551.11844-1-timo@rothenpieler.org> <20170611140725.11936-1-timo@rothenpieler.org> Subject: [FFmpeg-devel] [PATCH 11/11] avcodec/dcaadpcm: fix unitialized read X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Cc: Timo Rothenpieler MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Fixes CID 1409924 --- libavcodec/dcaadpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c index 8742c7ccf6..aff737ddb6 100644 --- a/libavcodec/dcaadpcm.c +++ b/libavcodec/dcaadpcm.c @@ -80,7 +80,7 @@ static int64_t find_best_filter(const DCAADPCMEncContext *s, const int32_t *in, { const premultiplied_coeffs *precalc_data = s->private_data; int i, j, k = 0; - int vq; + int vq = -1; int64_t err; int64_t min_err = 1ll << 62; int64_t corr[15];