Message ID | DB6PR0101MB22149358A19BEC0C75CFF6028F619@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:92a9:b0:8d:7f3b:94fc with SMTP id q41csp911992pzg; Sat, 6 Aug 2022 11:09:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR699nGN4Z8F0E47Hxs4PWI9TEK9U+ziplv5/QGbQTvAg5MtEtsaKdQ51o++gFgIskiSxOH+ X-Received: by 2002:a05:6402:51d4:b0:43d:9c8e:2617 with SMTP id r20-20020a05640251d400b0043d9c8e2617mr11931722edd.146.1659809386570; Sat, 06 Aug 2022 11:09:46 -0700 (PDT) Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id jg30-20020a170907971e00b0072b325758d7si4259903ejc.427.2022.08.06.11.09.45; Sat, 06 Aug 2022 11:09:46 -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=@outlook.com header.s=selector1 header.b=DdR9cwWK; arc=fail (body hash mismatch); 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E9E2D68B2BC; Sat, 6 Aug 2022 21:09:41 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-oln040092075104.outbound.protection.outlook.com [40.92.75.104]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AB60C68B3EC for <ffmpeg-devel@ffmpeg.org>; Sat, 6 Aug 2022 21:09:35 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gob/esxpXDDS5kKcoC3WU7NGC1sdv5wEQyYdF3catSas2cysz9Wum4jcge2v0ylMAKeaEoYcwTKMTzYnzwEJiYctUlBJ+HePz4WRSK5KyXa0cq2E8qFg+pXr6O3jz8lovy/Vs5ff3JY+Nt98vWN3CMFNu9P9h1AIXyC42U0F5XQ20jzUGX+WfrqDg2VNsb56LP//RtVD/3YEBA3n1OGy6gQdLrQH0uWUKSeU181FJGIfzz0DCoTy46E0jOwku0GrgnF60ASn9WKjUeDA2cY7QeWmkBdnRDUhBbrfzIfM0zxU/P59KT2jSlp213JSpc+Z7zadbKh8lkKZTNdj/afGkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GIJM9gID3F592iv8c8D0CAdmvR4zhLWxvlK/MfIvgoA=; b=gUafaq+CoAJsn0nZg9KDo8OUjx2rbLMFHfHL/76K2/Ld7e45PFFEHtjidRFvnElj/JNblJNT8tFqyXEuwRueF79jh8X9COnQ5rL2pYraiLGNb91rcd0xq+RhskGFzgTdBsYgqvv58wF2jEbLWa2vwfPwhZVdHdesvPGxRteVCzjFSwqNKL6+RGUjlx2Ht2ar4Yf0mRATl7n9w6lTCy4bwK0eAs9Y5jYnXJTSyDOgXaE0wAcUcipKB5DrxQ6+4tJ2jXK+GG2VMD4KOy7L7ZQeVZKdV+IaInoPnTaYvWQf7eKuHG4u6pJylHxTwTHX82f21vFR0Ycq93Co8tQbDE0kCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GIJM9gID3F592iv8c8D0CAdmvR4zhLWxvlK/MfIvgoA=; b=DdR9cwWK6WUA7SiXPE7ZSUBMG4cQLvVXHLyf8x7LV76O5MVDmbAzB/cPjGzN/iUA6hYRhtnk0LlIStOUETiMMn9e1shKiuB6vnTvzY3Zr6h08IXSml/0UGmA7IJhfEcfiW8BDI5+9qDQuhBrK/dxm8FDQtxtVVeTj1mVf2EDQcu9oN5ql6d1VtrYzNtV6XIvx2KxwPn/COYsStJ0l08xy9UEsEA/hWlXd6Nv4l11Jt07cKAxfRiT7ijKrCYK+CXbzMrXxXHtqBO+NZL4X+J3WDbckLEb9DokZ3yVjPqX6woyw+I7PCNEMtHOyWc3m3Z2iUdb/QjIuKm41Z1xdx1JtA== Received: from DB6PR0101MB2214.eurprd01.prod.exchangelabs.com (2603:10a6:4:42::27) by AS8PR01MB7573.eurprd01.prod.exchangelabs.com (2603:10a6:20b:2a7::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.15; Sat, 6 Aug 2022 18:09:34 +0000 Received: from DB6PR0101MB2214.eurprd01.prod.exchangelabs.com ([fe80::210e:b627:bcc9:8c46]) by DB6PR0101MB2214.eurprd01.prod.exchangelabs.com ([fe80::210e:b627:bcc9:8c46%11]) with mapi id 15.20.5504.016; Sat, 6 Aug 2022 18:09:33 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 6 Aug 2022 20:09:24 +0200 Message-ID: <DB6PR0101MB22149358A19BEC0C75CFF6028F619@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com> X-Mailer: git-send-email 2.34.1 X-TMN: [FLe9DOtB7BpWacqgCaqVsx05Pk771loL] X-ClientProxiedBy: AM6P192CA0091.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::32) To DB6PR0101MB2214.eurprd01.prod.exchangelabs.com (2603:10a6:4:42::27) X-Microsoft-Original-Message-ID: <20220806180924.316285-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9ce16afd-ff38-4220-73df-08da77d6d089 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiQqoVwXX3ck2qRfc7HjCnKmJm849SIZyVi5P46gDpTkSGRcuFVjh6L1Yl/2T56ppwS16S8LcM49X1Hx+c4e1QG8fJdugsW8sECDpWMHPHbQJvovhaptCIADBC7HPYjkU6BKRUrffV80NrUu3bqg8ET9bZAI00s6nN2Qn9ztLZ2o8Q0QO2qMUoIFO2/LN/Clkido04c1FXF1NKKSJG51UMNyvuwSl+n+8LcrGfAWFiTVeRQ3N9PgBlNvo3nfwK80KqyHp34Iwk23YZK8uBAcagZj4YrykdGdEyCX2/gGMK9nH1Of/FWrL5BSM3KGENvzjljUVjkDxUG7JWo+xju61Xk7a1JdyhvTeH5u6ukDw51Exo64Q9PlPVe/R3/A4aCJ50XpIUC/27IxBQ+59iCUu7CsdC/GngVenpyWf5xTRD5/G4qtda1NmeA4n05Xu4hk4/NCjolkig92UiWMqpv7Wj0AHeuRVQfv4HkpDSYSRpvgMVAnsT880YaUFP3JNA6tW+aLFPxjqzA5AGm5rXIXVMByIxJRGuUSvlVhqw0Y/CwZkeEfI3xd5X5jbbeBi2KymiNniXTbBI7I/Ak/5Pi4LJtCJ8X4cUmyjmiqOkgoLd1djpfYZP38bSff9eNmY2mtmZYmyX1ct06gyCokaDm8JPW7r61LwhwAwmkYazg/baXfpqsSn+JnTFKOxSQe9x0yrDBUi8Xcu/mYtQ1QLw3hTmTYs4sgZOzufftO2auJr2hUzH9m/MpKYf7pAP8v8qb8H+U= X-MS-TrafficTypeDiagnostic: AS8PR01MB7573:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QOs87fEfAL42s0ZOB10Jf9CufEL4zvORk9Tm/7WDH16niPQME8DxHMguCACZsqv2qQcKMvwAoISOGeaUqw2qwz45PSwjLwci4YJ4qbwOmaT21iIMjycWfd5J7+MiYyvNNy5c3GDcZmJRVkW5ZyU6nuRvEvBBdf9AXzuMQgOMza3BIOE1920bPDjEX1ZAVE3qkG2EhPQgPzSBmyXSM2IrY3fR6m+u6jxjqXKwpaR7v2A0efUdPojgpBr/Y2Ppi3eYzFTWNSIxsQgg1D+3bexI1lxwRG3aF0yqrXoa22K7zb53a32ldCWE+1WcMFa6m45r7oww8mQQrqJtz0VQZZlJgYh8UbWva+HwXlVyVrCkAad+trJpwM9krhV0SdpmvJa0dBGdESQml9LcqQgfQQS8W6aSySMJXq30upiG6jXnE5MdX0W6JTVaHu2nbs2mVzdM7bO98uaH8yfVRxWk7a7xZTbiLy1M5e57X8czDKQqZ5pTjaz7pIBh+I/ob5VnIZ8vMyd9JUIihDhzJKdQ/S8ARknn+IOOf8ymsFsTxkXqX704jgfomZT1zos4ig+sRBxrHyLcQPSAkEO6Rd65tUgLhglYFeR8ouB3wI7UShRip+Nd68PEZidur88C69rdrTzWZPvaqqJDaDheI1QEfstjeA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: elRreL4NMuyVG3la/+AuE/RYm61pKsLEwbaa6O2ZFBUrJhbAR6hn3MG1+uNFA1GiT5DTmYMKFP8u+MFDK7pqEd5eMHOLFsYaKbWl5rtczsgGwpuWqj9nLOOfrxB6hbGPQKVNFqwPs4uJaQKA99DLpQFvMCE48S0U3cPuu1zP9BkMy9DxfaowFGOADoXibiq1c1qqQokXU2clAo1q7Pn3fJ5ytf5sgjJiyRmCiGeN6rU+5E8rqorA3lVH84ZOnp0UQtY5C+zWO9UXZX9HF+YOoqN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9ce16afd-ff38-4220-73df-08da77d6d089 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0101MB2214.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2022 18:09:33.4846 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR01MB7573 Subject: [FFmpeg-devel] [PATCH] avcodec/libspeexdec: Fix use of uninitialized value X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: RPLPxJIfesgV |
Series |
[FFmpeg-devel] avcodec/libspeexdec: Fix use of uninitialized value
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c index daa6dec64a..af0f224b34 100644 --- a/libavcodec/libspeexdec.c +++ b/libavcodec/libspeexdec.c @@ -43,7 +43,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx) LibSpeexContext *s = avctx->priv_data; const SpeexMode *mode; SpeexHeader *header = NULL; - int spx_mode, channels; + int spx_mode, channels = avctx->ch_layout.nb_channels; if (avctx->extradata && avctx->extradata_size >= 80) { header = speex_packet_to_header(avctx->extradata,
Regression since 97d9a3293854eda84f05c22e2eaefae7406ac969. Fixes Coverity issue #1503072. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/libspeexdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)