From patchwork Sat Aug 19 21:12:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 43270 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:47ca:b0:130:ccc6:6c4b with SMTP id ey10csp584725pzb; Sat, 19 Aug 2023 14:12:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLxd0o+fkM4tz0Di/9rRvz2cGMTnNj4OSCmFihRveEy4pazJFpTvEFRijUR+Yu5bSTk9J2 X-Received: by 2002:a17:906:478a:b0:98d:f2c9:a1eb with SMTP id cw10-20020a170906478a00b0098df2c9a1ebmr2754034ejc.24.1692479579557; Sat, 19 Aug 2023 14:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692479579; cv=none; d=google.com; s=arc-20160816; b=xriEPYz/8U8k6gIHTBsPh25uyW21PH6pmVDc1r5qW50W2qpajtvLNp0oqaa/IDjYCa xWuTGCh5eQBxiD9BrQHx1I8TsGFiEbWxERKEURzeuShYi3oplfyp1xVBvNdSxyRXGggy BL4ynWKd7vTzr2QGfm4jdbgDm8MFQBPmdDrRl+0o+4KJxRDs9t3DyWiY+lhcVwpyyCYM NMFWCygBvyWiZ7lQzGsnCwv4wufEruG3+4EcukXLif9KO32Y5ktsdpzKKHbGnhabR5yF OO22vCKXwaWCg81l+BuzG4SmMSrmP1KJpEVZvq5/VGELDojMhPeGvOktMz2skDz5t2iP +IFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=xoZ8ueuF6Acj33vVza4CeF/cgWydWBGLmrgONCdxU6I=; fh=nsVKsSaZMdLznXlUv/EWC2FmpLC7hjoSIJBzkkMfbDw=; b=IRyvLE88PJAbecFScrosysmasHZRAUkcFnCdwMO4WtR2njtui56EzWvzxn0gaBVNPn M9hKJ1Gl5pG9EMQfFHmZkWNPzYyj1EU5t6AdhwqfQDWyeTa/GqtT2KqVFMEQGHczwUk8 ooJ/rTbg+rNZk0eTGDzjLz994s4zcTPYFmZa/IZhpkGv4LLcHJg6TZkHv6SxfYNFTt/A 9+M99Ki8P8/iTlHUa9eoWEiGFe4dVzmGFsBa7LX0Qw4Q5xHP/fJKDtbUaCvYhfULwLrN bowl2g/6DLQzZ2ha30eWxSENP1321ADZgCycyvRIJS5jK/0G8IERolCPNS7Vt5+k5Jei loCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20221208.gappssmtp.com header.s=20221208 header.b=VKXG3G8i; 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 w15-20020a170906b18f00b0098df1cbe2acsi3574764ejy.997.2023.08.19.14.12.59; Sat, 19 Aug 2023 14:12:59 -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=@martin-st.20221208.gappssmtp.com header.s=20221208 header.b=VKXG3G8i; 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 6DD3168C53B; Sun, 20 Aug 2023 00:12:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 60C4268C53B for ; Sun, 20 Aug 2023 00:12:49 +0300 (EEST) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-4ffa01fc987so2827625e87.1 for ; Sat, 19 Aug 2023 14:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20221208.gappssmtp.com; s=20221208; t=1692479568; x=1693084368; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=VNyTHpigM6HIIH2OnriR4FFW5IeuiOA++ewqpAkZER8=; b=VKXG3G8i7zDJ23NTTftKOXNXSFTsrlYZN5r2Pd/GsbztJA9M+3NXYvhh9103/e/jNG sfpuj/GGJk3/zhZFKcLHrCo0W78WE74unJ/evSKW9fyKHYO03g7HAqLQipjWmGfMYm4+ BUNnf2fUstdNyYyu7S73w5hlzXMNVSb7gBOr9TqbEeXWN3DuvqsaJP4mmTxTPf8RNNTf PnkouDUnXKNmhiP+AhGYxpDS8rvv4EW5R16ow0yoP+GVepUOQdCZV/swadSJF+6VxQJ9 yMOdwMFP0CVzaACZFKFSg8LFcU12k5GlLT0HA2vq2PR2qSRJvWPS4YumQuQdxzMzFp1p CfSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692479568; x=1693084368; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VNyTHpigM6HIIH2OnriR4FFW5IeuiOA++ewqpAkZER8=; b=QRYRz9Sm7D8gRFTZYDEZ0cNcdX02eFQWzg0WJHz9eV0NA+d1mEQh6eLPJtPKq5KqiF RlHPz7f3jZV3uWQqbWpNER9DGy935buRBoGRCgmRsN333XxV8BAvThkziup7JYWeArY7 Ci9IF0Jc3KGmh0MaaW+LX/XG/imFDZmdcCAXCBADjhqNNqPq5q66psvm0R5T5YfeRax+ B7r7/9wh7qs3HKXauZM50jF7u9o5Jq31lTXoMCj/rYqw7yxDrw/kpCZ/4x+30l4hPc08 ifOBq312Ke+WFfqeljodlGTfY+of4TZN82ufF+Rt5Ephar9+TpNB9SRuXxx3PPC74sjC 026A== X-Gm-Message-State: AOJu0Yy+Bdyt0bjaZoknN34ba5UiTolSe5DGGf5lJPSftQ4yTsHAB59J fK8+WczCdIHYcD3Rn12Tp69f53AxH4VFlKcSDoWUdw== X-Received: by 2002:a05:6512:2520:b0:4fb:7624:85a5 with SMTP id be32-20020a056512252000b004fb762485a5mr953709lfb.0.1692479567809; Sat, 19 Aug 2023 14:12:47 -0700 (PDT) Received: from localhost (host-97-144.parnet.fi. [77.234.97.144]) by smtp.gmail.com with ESMTPSA id d4-20020ac25ec4000000b004fe0760354bsm994948lfq.275.2023.08.19.14.12.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2023 14:12:47 -0700 (PDT) From: =?utf-8?q?Martin_Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Sun, 20 Aug 2023 00:12:46 +0300 Message-Id: <20230819211246.51724-1-martin@martin.st> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: Include objbase.h when checking for CoTaskMemFree 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 4G4GFZTuhkKi ddc1cd5cdd2570bf3d6ab807ee0ecfacdf09431d defined WIN32_LEAN_AND_MEAN globally, which makes for much fewer transitive includes from windows.h. With that define, CoTaskMemFree no longer gets implicitly declared by just including windows.h, but one has to include the right header objbase.h too. That commit caused ole32 to no longer get detected, which caused dxva2 to no longer be enabled. This gets fixed by this patch. Signed-off-by: Martin Storsjö --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ff6a5c3600..04bb9fe9dd 100755 --- a/configure +++ b/configure @@ -6488,7 +6488,7 @@ done check_lib advapi32 "windows.h" RegCloseKey -ladvapi32 check_lib bcrypt "windows.h bcrypt.h" BCryptGenRandom -lbcrypt && check_cpp_condition bcrypt bcrypt.h "defined BCRYPT_RNG_ALGORITHM" -check_lib ole32 "windows.h" CoTaskMemFree -lole32 +check_lib ole32 "windows.h objbase.h" CoTaskMemFree -lole32 check_lib shell32 "windows.h shellapi.h" CommandLineToArgvW -lshell32 check_lib psapi "windows.h psapi.h" GetProcessMemoryInfo -lpsapi