From patchwork Wed Mar 13 09:50:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47021 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:e85:b0:1a3:31a3:7958 with SMTP id ma5csp268373pzb; Wed, 13 Mar 2024 02:50:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW0bdloJxayILckVaPFQDqtoFV5k/Jq6NFOuJOdHrY/s1J+oZTMTdc3UM4JCH92kTrtJFMYzPz1gPpmHHsv/Ar1HJWF/eKml7O8lQ== X-Google-Smtp-Source: AGHT+IEtPIU1qtosY7VYcmbf3DML46gL9dJ45tQN2bUA6VUaip4/YlNth9KwmE8F+5AdnX/raWcv X-Received: by 2002:a17:907:1681:b0:a46:1e16:316b with SMTP id cx1-20020a170907168100b00a461e16316bmr7642231ejd.66.1710323437535; Wed, 13 Mar 2024 02:50:37 -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 i19-20020a170906a29300b00a44eb065668si4238550ejz.266.2024.03.13.02.50.37; Wed, 13 Mar 2024 02:50:37 -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=n1KtMp6s; 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 4AE5D68BDD3; Wed, 13 Mar 2024 11:50:33 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2086.outbound.protection.outlook.com [40.92.90.86]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9765968BDD3 for ; Wed, 13 Mar 2024 11:50:26 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0zTlLqo1yhCpgBhZHEdMhaZREX1K3iyQGTLjjSz51Wpo5PnmQnKW1ZPutq841XoSjoCZo+yIEF9IMqlK+zYwJyCSvfI1fBKaVN5Jl6Ni68PVm7YKRk+bktd5X2B6J7e6iWpisdRPurCvniK5W9eQMazJWcEEBo8gQzkLIh87LvDFeTqGo9ywE2cjcBP0sU34i72vNa2DYAIBdfg/jRXDR6loZnwbcXpc3H21UhzU/z82eNImk4r22XMZj86TVkV5H5DUuPNdaziCq8G+UElyidb69Mxt7x//UIejhTca2ZawBFfPn9aoVp8o6qM/ifhJyw1RmRn3WcXWzR4qUQqnA== 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=8V4Wsayh/MLhS/6iMskNQ7E6cEGfoo2yp5Vb2z5pcm0=; b=XyjeEG9zfkUatbacaeQgX4stLs/S+Q0OWmqfDeZO4n1MJuxXmL1xg5ggaVHWu1yLYf/SOdpZ9ofoNWo0MLSMfDeMbtKYvPVjodqk6GXTy7d8vBrIw78ZxRx/W439o9YM7mnD0tqJNfv8jcS6CLHLxfUg7KgJgeSKQeb2GIJKoNPLgVqMMgV4P/vfmdEw+Nm5D0b4MpcfoGw6HWg7yi8ApLwI7kx6nC7uWDbQDXROV8EZcnVy62p94rhwqPO6a8R+06h8h1yhN2sEHTC7T0mF1fH5nLwG/P59DDKjveZyFjNlCKS5ygHcUBMm9+wBr3yryNOtja4m4sdeMvxe1FrMNA== 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=8V4Wsayh/MLhS/6iMskNQ7E6cEGfoo2yp5Vb2z5pcm0=; b=n1KtMp6sCLVt/dd+dCGkeEaoATrmF4v4z/FiXxVm7gQACMoZ7dQYuCSazS7vELQ9QDR+vVgr9dKemPcWZZycnPwQlQcBxzpzMWiRw3lbj2UdtbTi7hJatiVbnnb331dlpy69cPxcGxffpGsYkb5x1Y1fAaHHwHPUEb3nSzGIGCqnWcGeEwUxidLDMEJxjsF/f+5DS/3vz6tFCzz3JKuMy1bRU2aSyhOaUkry+nUC8uBrz76+/+GeIAAQD+lZ2Cb1lkdO6ehX75HS5mFStCCXrSCUdq8/ZVsjt5dt6cGTtiUihbM7dwS3vxbPQ0PFLrOxLIpJaBaPDAQiT4JOlO2nJQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AM8P250MB0076.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:36f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Wed, 13 Mar 2024 09:50:25 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::228d:8c6f:ed10:82eb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::228d:8c6f:ed10:82eb%7]) with mapi id 15.20.7362.035; Wed, 13 Mar 2024 09:50:25 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Mar 2024 10:50:15 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [xsFVCCaok3ifhJeoD1EBT3qC4WnMtbA0] X-ClientProxiedBy: ZR0P278CA0064.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:21::15) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240313095015.2356848-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AM8P250MB0076:EE_ X-MS-Office365-Filtering-Correlation-Id: b915974a-0c52-41e5-5fda-08dc434301a8 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnrZB07ndMjn8ORGptBFzyKDidtR7tIbn2IWWObMDwiM6+HDGnq8FoIFA7Okv4c81pK+taisiJE73/3FDVdvIrOT5VGe3oCYuPlgxp7Wck+01B+WSJaKEiAx+3YO7virnxzg25bjF0G1luG7EozR4ns9azpovI8o514+jGbi9NNp7kmZ2gpbR3DIxjFic/pbrBvIZpkWLEqXYnmClpcV7hsbN4VTF6zofeBP71N9MyauHbjH01NxKunEzmdVRfFUT/FAjENUrSad8UeE0QLH9puS+F+UaWuvl/Rmn3LGp4uhdzj2uwPqecbEGAv0z8iESltcYbs/Qjzw3B/gPlXBWrqr9akYnU/dfpQgiTTTdCSDHkNWbqgIUZq5JZywcenC+X1wNz3gYn8V8VtCUzkvKffpnrZvjd+Efp8CJ8YIeAPora5UPMJZg7Ig7qw8weu+Eqsw6+LgAhfpxrXK5YqcFgDsD7eXSbDNSa/CXUa5xTWW1mvg69n94ZxAztlqAjfT6ER+rci8ooPAh9VwMRmArhI0gs5fu7Ya+ebyw5Cyv+wWhlUkZRDXCUYuhlXmJcBJ4xpIDoZkhFJcaf+UpKHXCnRtExH2Y3hrIY/94nMJ30Eu4WPxOeiFGSIhgfGPpIlZ2HJTYKxFd3lPM4V6/cF9C3rZJ/7n6jCOa8B/AdZlGGcO9ZPIRv7LJLMdGhuhWXRv2KtusCxbDJ4vI5t9KvL1+KJ27lEnIHBvByFX+ojB44rS3apDw++vCaFVvaQ8J/pKS6I= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kPBfjL84ZgRY0mR70FmpBirliZi/+K5q6tQYdrWR50wl+xP6RuAHr/lncMw8dS7NfuqBJ/gvecgcP6BH9Ont3rl6+3gH0gUKyjAKDfUxg7fCaGCeqc0PUiFOcbk4z3zk43OUspfCO9bgz5kotYs93gndXBN6TVGhETIRQG2sTSvqAWhPvHsOZrR3xs8bw3AIH+LHNV9mw0oIEuSXV8dGkf7c0k3EKOWF8ZuHkDJsPPU2Jax4aph5BgbOGZcUx1yiVADMkXS1/5T16Sf6ZoCwEtC7PaY6Wsg1w2FaCe/ujLX6yCWxBaz2Yr5hPyeSXqeSBepjE0c/j+XESB7V2t27blje62dugH9st1P0USpKq5b2dkZ0CoT0TSI831C9DrGWWCifvd1YykyMPe9rDLokK/+I41vXBT24laMxwF153E28to0jEqJh2NfoTWYB+ragADy0+u0wTlOYoVE0VZBCgfWszOG1VkueTt5tD3bdispXOS92sh3Qidis20m/GN55iEB4glMRd+ahNemG81vmWoYol4ClZX232ZKZkat2zdMZKXOTCl4fas99ggUDofowAJOGM6qn5DED9q9X3+QGHpgNA8DrMr6SQtlJCBmDL4NAaHNayadtTV30Dhh4ZPvI X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CdypbuWn1wCt6bKXqJbRHdeF1XTb0JW6/mGTPBc7Z4C8EW/dpKDAxzCCOgs3J41dsaKD8bLq2W/nTPWk8nfltLhBbbGH9h3yGH4hgMVTzyO5Lm/haxN7+n7jZDOYi3XaGBmROKfPzLF+ZxH5xzUIkjmIHwHStXo+MCUngPi9H7Q+9pfsMlMwbiKJdUZ1Ze2eiEb+V9XSpNoWjF5YwsUutYelGMVS/Wph6BwpboSmc5kbBeKvv/0G75XdgHnOP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Tenant-Network-Message-Id: b915974a-0c52-41e5-5fda-08dc434301a8 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2024 09:50:25.2787 (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: AM8P250MB0076 Subject: [FFmpeg-devel] [PATCH] fftools/ffmpeg_sched: Remove set-but-unused variable 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: 28LNEyF+qJNw Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg_sched.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c index d1fb942c34..f739066921 100644 --- a/fftools/ffmpeg_sched.c +++ b/fftools/ffmpeg_sched.c @@ -2310,7 +2310,6 @@ int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt) { SchEnc *enc; int ret; - unsigned nb_done = 0; av_assert0(enc_idx < sch->nb_enc); enc = &sch->enc[enc_idx]; @@ -2332,7 +2331,6 @@ int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt) if (ret < 0) { av_packet_unref(to_send); if (ret == AVERROR_EOF) { - nb_done++; ret = 0; continue; }