From patchwork Wed Nov 8 18:17:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 5894 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp1071681jah; Wed, 8 Nov 2017 10:18:46 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q67K7kJgYMFMa8ncLgaxQJwDifvRbnCT2+rNhRz0wWu14E0Crytu+QsshmdjVrh9H/RHDt X-Received: by 10.223.163.22 with SMTP id c22mr1199973wrb.73.1510165126542; Wed, 08 Nov 2017 10:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510165126; cv=none; d=google.com; s=arc-20160816; b=TvtTs0ODZn2RzIwQKr4KPRkf8Uo2BrWq2ekmIXLtGcvVA1p9autpUs+wQi0DbQvtie 4+LyX7zrYJalGjYeOMo9zmZ4D2fYdJbarmz8+yMItmEdvZ0eXEwDbNHL0YiBj5syAwsN cbMTNkZiajzKwyLiRHCyiW0Y9Nm1/ZwDPsNEtia02fuBjELp6c8PQjcd4W6oLuhx3Wdw bEGHMVv2KbtZ/8G24QdeOFB0MQ8l8Rj/S3tQaqsEhI10VDqyc9n3eQLlSHsaWfly75bB JBQAB1N0JwALO5MV+T3qLRKcSMeT6d/XcL11PO7J8UkGf+0OepLDmMhDxnnjJoOgf4Da 5Tsw== 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=arJwTQBqRSEhTgXoB+85LDx4gwj+yD9Y1Qc7J9b/7M4=; b=ozaN4+qg/Ng2cpRJhTSLYEGDFLV1Ho1Sd8EgFbsJSLyRjot7EKMShTN0Ameb3RyL4m gCo/TfQni7oyuvv3v2rtrBeuhSyVrOSU/u9JSfZ8Mah/Mvp+hNx1tAfOQ2fy4S5mzHgS dM3XC1jYqMZ6MTSyPedLarCGAMsOdgD+++PHq1lI7G5MrrNvDYip2Wi+yB2HEJXTz366 SRVQFSV0HnF8F7z/OZm+Sq4/EF1r9Ezw5+E7z1lAXfsXiewMdqKguudYN5iDK1Cm+nQR GjCVNJBaoav1mr7rLstzsRodSz4MS0GKzwQMt+Kw6u5yU1kgyvjoC1xcs2d3/G6kbYjv XHqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org header.s=mail header.b=EXQq2ojT; 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 129si3893525wmr.27.2017.11.08.10.18.46; Wed, 08 Nov 2017 10:18:46 -0800 (PST) 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 header.s=mail header.b=EXQq2ojT; 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 B1A48689E43; Wed, 8 Nov 2017 20:18:03 +0200 (EET) 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 7AEC7689C07 for ; Wed, 8 Nov 2017 20:17:56 +0200 (EET) Received: from localhost.localdomain (ip4d15a587.dynamic.kabel-deutschland.de [77.21.165.135]) by btbn.de (Postfix) with ESMTPSA id 18D67111578; Wed, 8 Nov 2017 19:18:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothenpieler.org; s=mail; t=1510165089; bh=HpfeT8vcUcccAgwgOLuEo2C+iGnMA9i3vwTASCaFPq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=EXQq2ojTtITabbaqZ2aqqL0xQRQFMdnMgQlnmit4hYqz2vtEHP+0Hq6/5UdhoQY+U RoY0GFcRmtyz2LSFUMtPqj3vlmbR0gIiGZJHHhlTq4gx0EQ8BIcsjhrYxTv0Cf5rtJ ZbqDzRuPNAhRuWN9d+rmW/3wJH48+RGII+CPnuek= From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Wed, 8 Nov 2017 19:17:47 +0100 Message-Id: <20171108181753.6776-4-timo@rothenpieler.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171108181753.6776-1-timo@rothenpieler.org> References: <20171108181753.6776-1-timo@rothenpieler.org> Subject: [FFmpeg-devel] [PATCH 3/9] lavc/vaapi_decode: fix uninitialized use of variables 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 #1419524 and #1412855 --- libavcodec/vaapi_decode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index 27ef33837c..a782cfd8da 100644 --- a/libavcodec/vaapi_decode.c +++ b/libavcodec/vaapi_decode.c @@ -281,8 +281,9 @@ static int vaapi_decode_make_config(AVCodecContext *avctx) VAStatus vas; int err, i, j; const AVCodecDescriptor *codec_desc; - VAProfile profile, va_profile, *profile_list = NULL; - int profile_count, exact_match, alt_profile; + VAProfile va_profile = VAProfileNone; + VAProfile profile, *profile_list = NULL; + int profile_count, exact_match, alt_profile = 0; const AVPixFmtDescriptor *sw_desc, *desc; codec_desc = avcodec_descriptor_get(avctx->codec_id);