From patchwork Mon Oct 4 14:53:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30899 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp4398389iob; Mon, 4 Oct 2021 07:54:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo6o6vtdUpMsxVZm36twkCRMNdUgaobmvzbxfvEEl4xm+2kqZHYxwyXwB17y70WR8vf6Bi X-Received: by 2002:a17:906:374b:: with SMTP id e11mr17336343ejc.492.1633359255914; Mon, 04 Oct 2021 07:54:15 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p4si21091981eju.288.2021.10.04.07.54.15; Mon, 04 Oct 2021 07:54:15 -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=U01kXBuX; 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 9E5CD68A957; Mon, 4 Oct 2021 17:54:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-oln040092074099.outbound.protection.outlook.com [40.92.74.99]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DD4DA68A2BF for ; Mon, 4 Oct 2021 17:54:05 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AqSxxjVPI7ov7n4wGhFvjyIFZU4Jg21JV1TYDW2LyWa8wY5yoE4LlkiKjScs8r3xRXtN4K/Udm+cbGjvR0mrGWpYqPZIiE2roBhM9t1BE9+yO5wK3yr87zNKx2VB3UUWoSnA2FMozbnOgR+J9LSdyJMdya1PZ26fEeQwH2IgmBzstNMBrNtsiMgSm6XKe04y6Mpj+JNIj7P0YD+G0oeEADQQ2I/Vxh5eHxda94mTpWqBALOduO1N/X+sqxkaAoBUBeTMKxwU7jz5pDSMseU1M0CKh0psPgA4wAzTgVzL3TUEVMMQxEMJNOxtLUFLouZk8zlNjppiB1qbuiJEQMV1eg== 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=zM/9AnwyyfRA30KbWynhJvcPwuM2z67BaaBcW+SR1lc=; b=b/qmIn7qvkIv1fjZa+EFb9RgCekQPPHbyVBSKheTRuU2gXkgsx8pnXxrvl2Q29jqg81TiWsDC3sp+l1OqEAfIzTa6bZcyA5Gz/mk+sFSatBBFPCDvl4AIlXpXNuYyGc2W5EBga24+hsNAEiBuXe2ii/DtwrbMIkUQ8zbIKcS6Fqb25/hCwOUlhZfyg5h2dURsnIdeBCaq1uS0M6tCEYIljdV1+pH/AaXh5DPSgiq9ph6sRrq8MpuZI92Rciky5Q7yxnTDGSVRU26CND4SEKOy4K2uMBdVLInktrfyd2vyS9GPE0wibz4vP66gy08cpFQAl2zdfekLlmBAbzDgcS4WA== 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=zM/9AnwyyfRA30KbWynhJvcPwuM2z67BaaBcW+SR1lc=; b=U01kXBuXBEyEOtc8nQeUFJixU0QVcyyCP7pMdP4wBbmHLB3+02S4IPopu+ZGcQCrAUrrjIbGvdD6k3Ho4eYWzU2/NlhKijHpRopYQrqvh0/qK85FrrhoqtRJI/5k2UpiNe+61D33/nY9ZLoronNJzCWMpU0dsExuytf8kZCSCH8JZml/XLkXHwZWRHyqIGjnPmItk6ucdSZHBvP1ObxvhuAS3UMavgv2xMlhCuEbIeZ0H//CiauH9j2/s9JoSxorC4c/P2Vv/STBlMBUuCJU6iMncppWIrWDNrUNORFTcF7GhqJxu+zYetlZlwROoc3B4wfJMzqNKxfeVRcidY+CPQ== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM5PR0301MB2353.eurprd03.prod.outlook.com (2603:10a6:203:9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13; Mon, 4 Oct 2021 14:54:04 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::700f:d70b:3bb8:4d51]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::700f:d70b:3bb8:4d51%7]) with mapi id 15.20.4566.022; Mon, 4 Oct 2021 14:54:04 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 4 Oct 2021 16:53:52 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 X-TMN: [IbyP3xZTbs7vj5K8Ir3rIU/wds1s3SXR] X-ClientProxiedBy: AM6P194CA0028.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::41) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20211004145352.3984836-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM6P194CA0028.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Mon, 4 Oct 2021 14:54:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 86b0474e-90f3-479c-9734-08d98746cee0 X-MS-Exchange-SLBlob-MailProps: pxu8rxgqUgg/WdMJ8OT/HaNBoe1rbN5ak2+DeaBxi5RAq6xtYjrt7xj0eQVjfaU1czW1P/vKP6l90A0nRdJWN5kLw+o7p9wKblqJP/K1zBBAerWp0SJqACN3PNMVhticywflla8+IyW3xY/vEcql3LHvdh1+Gc2PwAkex5E6U6tUnb6y48YLe8swNFlwad/gdenMEiVrPoITDR6cYxPcUSj4FYcw1UoUfAlSZSvdcB9qSn5Y+fnGIG3jfhN9u+ciZjSbPSKJOIzlNHH7xd6egXT4I9A2NcdKlDCgN5P+x2iG6ZQS35KMYtkjIONaZpbkdZKI5BxBmMgLjl2xUrTK8UedivWOGqF4G7oDkclnBOle1O/rOZz1HMDYyl8VC1XpjubJxjrAx9T7b9bdSgHFZp8KEN9N6Vw3ASkg5lMnmA+yQ7PiH5WilbGvqWm/LVoszVJvhVZAOMPN3yz/WXzvy6km00bTUSmLMDIReXDfq0at8cGSjvtqh3mgPUqBJqBulG9NpZNG9WAEFyHIpIvf77C8Ai03g6XpMy0t5KvyPwHmqVfADp3DSuHN/gQLGmhdnGXM44zZ1WxAKZpw/bSXfkul91rzZzZrahBZ1sBA5P/dVACXhi4oqow6P8nXowLvfbgUwzOY3lT5SOScgVqccgKsKQsHMJi86ipP+mxkx3w1DL0PH8WJMm2Y0bn2MKeHFFjoVsrbaw/mII9/pvJ2og== X-MS-TrafficTypeDiagnostic: AM5PR0301MB2353: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6PpqRwTzpoKGh8WnPa2KR0VtnAUWYwyJvEvyFK0EF683I0rx0R44piwYpghRJ+7pGQmrHGbJfLuLl6En4eJ4aV6w8Bx2NGnKFe6gtV9SBTyGL7FuLvIZkoo9cEFL5ExHkROb22M4qOWuTG3wF5pm5JX7vuXGNOgskUqOJjyUz06DURWQFfr8xRrLqch5zAZPpbNgET4lNBOKt05EEVBb8N+S2r6ha47awUFLMuHiJNV2pRi/QBywsP9OY+CjTwF7FEk4PyY9didpJPkNJLIbs0QbJGeJzbsry/UQnQatZPqyGvq5GqX7Y8CgduYLYIILmZPR5xbIusQXi3VpEleqAmUAl+9KTfVNqq2o4gXfgtcrD0e/9URXvba0FNp/cv+mWOXnF8loyK2a3GPgLBx/6KKym+G48qn0E2mB8b3Zc1NLbO27lqs2RJaeq/3Lko2g X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0g4T45md9IK5g7iqF8SZOtTucuKSXFBXf7S5rOm8n3mqJsfaBSB+mGNke9PnrI1wh31PC0JlSqejvUpiR3hTGk30egGUqB4CevBJzk6QU1JAu4Vdi2O09GWjQ2pkDmR8PcUWWwKExee7CK7VUyAU2Q== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86b0474e-90f3-479c-9734-08d98746cee0 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2021 14:54:04.0291 (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: AM5PR0301MB2353 Subject: [FFmpeg-devel] [PATCH] avcodec/rasc: Fix potential 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: yD0iNdgiOzj4 Fixes Coverity issue #1439566. Signed-off-by: Andreas Rheinhardt --- libavcodec/rasc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/rasc.c b/libavcodec/rasc.c index 7fedf73878..b328e219bb 100644 --- a/libavcodec/rasc.c +++ b/libavcodec/rasc.c @@ -721,6 +721,7 @@ static int decode_frame(AVCodecContext *avctx, break; default: bytestream2_skip(gb, size); + ret = 0; } if (ret < 0)