Message ID | TYAPR01MB32773086048477B9D134C090DEB82@TYAPR01MB3277.jpnprd01.prod.outlook.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d7b2:0:b0:489:2eb3:e4c4 with SMTP id dc18csp521853vqb; Wed, 7 Aug 2024 10:06:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTwM65euGfYA1UlhfDKpwDHDMVOiTr4kuYc6tbIRqqX23YbB703LmqhWC0WFjdH+s5HwjrbvnMzSfQ9cLEXyGdj79yVnQq3YWm6g== X-Google-Smtp-Source: AGHT+IFspZH+J9bPVet+/cnUYgUqScbITTM/8tzUmImOW15Leb7EQlo50DXnS1kgVdfN/DjuAg85 X-Received: by 2002:a17:907:981:b0:a7a:81ba:8eb3 with SMTP id a640c23a62f3a-a80791a67aemr235959366b.27.1723050368722; Wed, 07 Aug 2024 10:06:08 -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 a640c23a62f3a-a7dc9bd2893si730854666b.130.2024.08.07.10.06.08; Wed, 07 Aug 2024 10:06:08 -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=@hotmail.com header.s=selector1 header.b=SGRgXseh; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4440968DA5B; Wed, 7 Aug 2024 19:58:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazolkn19011037.outbound.protection.outlook.com [52.103.43.37]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BC31168DAA5 for <ffmpeg-devel@ffmpeg.org>; Wed, 7 Aug 2024 19:57:59 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wnhH578VEnWdTbDtfCUzV1rDMYFs0M10EQiQfZ44iJEDu1Ii4TYZsxtdtEYMnsUqpYuwvgq0uhssH6Rv1xAiNJcAbtRYtSXEdB68njEkKcz9X4iMsMI/fvvCSn3mBO2JKeVzyOSn+2b/ghbkqNpjbyAknoMrH0LBmXKV5J5N2t9ty1QnIpQGDhNCpOHuNxxe220sCrUtYOGMBW1CHqYFwzrwCW9gBwZLAMa11ykn70YTE9hvgYK2s/HgkC324Ji99UpO8NSCM75h4rGUHquTnn1LKZTUlbo+0MfRApPA7cvd0EtLJGT9nKR0SOtg2fL/+5VJF64ddWVibVZds+Pa5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zeIqPxPiIHmWyUjD0t3XJ8zwzGADJCRl+mVAybHL2x0=; b=Yzejy7Ca3PCUbaJ6rAUzV0HzzGxhA9CYZbAW1ZkQB8XGJwcH7cTSfG50RWte1OU2kcY0AKVs2ziP5bTIh7V3sVZaPWVbVHEVi0tbhO3ZZyDLSIFDFAbD4icDVQakWvlEAvfkAB0DpgdUZYBG3Uwgk6NZYcBrbS6NCjk01Qo1gKxGiun5jJDxIjzAF7aBrbqd84huV5Yc87ki9Rss8o1NMpegbAQbhjUS7RZAI3j7hL6h3LTctvqYE9tity3+MLP+dhBaIE8aJzs9gt1kmMZGMISl5nWrFLGVyFmc/rKOY8HPLQi5rJQn628uiEOjXwZcV/C9gKh28d0Rn1vlKg22BA== 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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zeIqPxPiIHmWyUjD0t3XJ8zwzGADJCRl+mVAybHL2x0=; b=SGRgXsehYhVF5eN1fWOJ5aSUq1b3c0L7GGcnZzlc4lLTyU8OUi/Kb7BK2yPgBZTaFDMDCdh1cS0i0utyooYLfbqYjbv/ry8wtmfuy72VkOXDzda5wAP00tU/7gYnwxxTyEHJMbm02oujHTwxfE/HIYHdyz1X/x5QplB9c/FVXGzC4ig8cN1Ew9Yu7U+IDQXcmPE5NyCyTd0pg9+fvJ5xpqYN9HRdsWCSZKlW5oz1FoduvE9eiJXRiGODXHxYSiBl3/IiKph8kIGhs2PsqXcuDoIXU50lV5OEHq+Fq/MApQc1BPy3o4ZiX5ySHpUMTL7Gg1QOeTf++zFm91cAGNuctQ== Received: from TYAPR01MB3277.jpnprd01.prod.outlook.com (2603:1096:404:83::18) by TYBPR01MB5549.jpnprd01.prod.outlook.com (2603:1096:404:8020::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.14; Wed, 7 Aug 2024 16:57:17 +0000 Received: from TYAPR01MB3277.jpnprd01.prod.outlook.com ([fe80::c9f2:8249:65d9:d0b0]) by TYAPR01MB3277.jpnprd01.prod.outlook.com ([fe80::c9f2:8249:65d9:d0b0%3]) with mapi id 15.20.7828.023; Wed, 7 Aug 2024 16:57:17 +0000 From: Cai Eaphone <cyfdel-at-hotmail.com@ffmpeg.org> To: "ffmpeg-devel@ffmpeg.org" <ffmpeg-devel@ffmpeg.org> Thread-Topic: [PATCH v1] libavdevice/gdigrab: change hwnd tail check fail logic to !=null Thread-Index: AQHa6OKxCtfw6s8D9UGTf+FqlTw4mLIcA8LT Date: Wed, 7 Aug 2024 16:57:17 +0000 Message-ID: <TYAPR01MB32773086048477B9D134C090DEB82@TYAPR01MB3277.jpnprd01.prod.outlook.com> References: <20240807155816.1412-1-cyfdel@hotmail.com> <TYAPR01MB32771EAB1466CFBF9B3698D9DEB82@TYAPR01MB3277.jpnprd01.prod.outlook.com> In-Reply-To: <TYAPR01MB32771EAB1466CFBF9B3698D9DEB82@TYAPR01MB3277.jpnprd01.prod.outlook.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [oJkwh6Bbduc8SgjSgL6/6k0b2nognOg9] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYAPR01MB3277:EE_|TYBPR01MB5549:EE_ x-ms-office365-filtering-correlation-id: 363b5fb8-f884-49b3-c7c2-08dcb701fe98 x-microsoft-antispam: BCL:0; ARA:14566002|15030799003|8060799006|19110799003|461199028|440099028|3412199025|102099032; x-microsoft-antispam-message-info: /OI9dEmfHdX7QypSXAfcvBQONiP3D0G97aEI7VFJQIkTXOsn2DajorMLwjlIWpTu9vnb/y273ta5dzW/c7chYbb2dhScXJ897iZqTD8jMyHt/VrxTH/qcqO6j289rcCH+tyAXF6z3izyGQUH0yVSZqKLm6CE17Y/xxKTQJOyEPL0FXwMVsk/1fRXI6AsfmaJeZU/kXvfX62ARrVidQbXUPO7oT+uQk9hB9S7q7sXHld1axOYjcr3qhhoUv+Xnl0TZ3IQ/XcQ1tgw1XoorOI+8eRHKS5BhYxRWiDdmH0EZtMMgysIh/YoyCivld4UwBCIIp70eqUQwUAOvnlT+/1dRp5iGv8keDj7OXXZnn06p/1cHSekptoa7g4aPBH2Ru4fhIAkb+OtKJaaS2dX6JQ5pxGxVgiNdTaJFKvxICbpu/Pt8RuUfxrPxL5EeNuC4lHk89RomYDLDih9FnjVSSVYdM6pk2aTqvyj87f4aGXFitSR01Ao45rMs8LVTBk3QM+p+8ew5AcR9kC7+OyY/Wwa65yzjIHCYugtdiuzhjH7jOzOIx0C4UaYZd+l9cQHjMt0jIukPW9UxA7z1msGgKUIcEkY298c3P5/OrxUfle0rfCz8hBBTz2olJ2Kh1Y1Ou6vYtnL6vsdDqPyiq9CnPdqmpUYIZiMHPlcbCAUVHuPRlbkbD6QnY3EQnPeBJA94PaU x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?U0E1YXdpSG4wRDNkVlBYcWlH?= =?eucgb2312_cn?b?ZVBkdURyUnNqOUxRcnFvbjJCSTBibUhEdWg4bklNaDJIbGJvYnFDSzZVRGZpemZk?= =?eucgb2312_cn?b?RDBwZzdicmRWTDJNejVYQTJSeVFSMzduMG93d3N2am9TWVFNUjNkRTc1RW8zWk8y?= =?eucgb2312_cn?b?Wm1MMnVzcURkTG96dmNkNWNIZm9XTENyZVVJUXQ0OW1XZkM2d01HOVFHenIrQUN4?= =?eucgb2312_cn?b?WE1Id1Vka0pJSGwzOC9Jd3lRRk9lWVhkN2s2VnU4MjdoVHNLWlJKVU9pZlZ2TDZo?= =?eucgb2312_cn?b?Tlc1akxXd2pBRVNTZjcxc2NFcmNkQXlocForZnNsak41aG1oRmxSYVZhWkxxeHNy?= =?eucgb2312_cn?b?ak9OR2hUTUQzT0tXbkwwY2lnOUdMQ29NR1JPbXdoVkE2My9vc3Z1WHc3UXJvVVA0?= =?eucgb2312_cn?b?OHFtQ2NWYUF5WmtvZ293M1ovc3d2TXF5U3hKdy9Mem1qSWZscHhlQ20wSGtmdERy?= =?eucgb2312_cn?b?ZCtYVmFSS0xUL2ZGb25QTkV4a3c5VE1WZjBxYVhDUmo2ait5M2V3WGszNFozbVY5?= =?eucgb2312_cn?b?YVZxd1RqYkhwMnVDZ2k2VEFheFJabFF4WDFmeGhxN2ExNldRcmY3ZWorbFZKYmdC?= =?eucgb2312_cn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eEZGd2tpQkJZdFJSdFp5c2xNSU1SN3hON3k1WXI3d2tpdmR6L0p1cGFUbTE5?= =?eucgb2312_cn?b?WmFWN0gweGNMSEZiZGphb1Q0OGhHTnAzdHFEejJIQXJLZEVQaHhhZFpkNDVUUVZQ?= =?eucgb2312_cn?b?bDBzS3ZPZXRNZGxmOTBycGVwNVVvZWJ4Ly9zM0dVRjVaWHRGb1FZN3l3eG1vRTU0?= =?eucgb2312_cn?b?SGU1MDdERGtYY2NMUHFuak9zQ3c9PQ==?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-7719-20-msonline-outlook-15995.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYAPR01MB3277.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 363b5fb8-f884-49b3-c7c2-08dcb701fe98 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2024 16:57:17.3573 (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: TYBPR01MB5549 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] =?eucgb2312_cn?b?u9i4tDogW1BBVENIIHYxXSBsaWJhdmRldmljZS9n?= =?eucgb2312_cn?b?ZGlncmFiOiBjaGFuZ2UgaHduZCB0YWlsIGNoZWNrIGZhaWwgbG9naWMgdG8gIT1u?= =?eucgb2312_cn?b?dWxs?= 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> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: uZHugj++26jo |
Series |
[FFmpeg-devel] 回复: [PATCH v1] libavdevice/gdigrab: change hwnd tail check fail logic to !=null
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c index c91661c556..08a41c304b 100644 --- a/libavdevice/gdigrab.c +++ b/libavdevice/gdigrab.c @@ -281,7 +281,7 @@ gdigrab_read_header(AVFormatContext *s1) hwnd = (HWND) strtoull(name, &p, 0); - if (p == NULL || p == name || p[0] == '\0') + if (p == NULL || p == name || p[0] != '\0') { av_log(s1, AV_LOG_ERROR, "Invalid window handle '%s', must be a valid integer.\n", name);
this message seems not attach to the mail successfully, manually loop it: what the patch does: fix gdigrab capture a window with hwnd shows "Invalid window handle x, must be a vlid integer", althought a valid integer is input why: line 284 of libavdevice/gdigrab.c, one of the condition leads to check failed is p[0]='\0'. if a integer only string is process, the p[0] after strtoull process will be null which equal to '\0', otherwise, a non-integer string will make p[0] not null to pass the check how: change p[0]=='\0' to p[0]!='\0' will works. no any side effect reproduce and verify: a simple command: ffmpeg -f gdigrab -i hwnd=12345 * althought a workaround command will work currently: * ffmpeg -f gdigrab -i hwnd=12345x. (x could be any char) ________________________________ 发件人: cyfdel@hotmail.com <cyfdel@hotmail.com> 发送时间: 2024年8月7日 15:58 收件人: ffmpeg-devel@ffmpeg.org <ffmpeg-devel@ffmpeg.org> 抄送: eaphone <cyfdel@hotmail.com> 主题: [PATCH v1] libavdevice/gdigrab: change hwnd tail check fail logic to !=null From: eaphone <cyfdel@hotmail.com> --- libavdevice/gdigrab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.45.2.windows.1