From patchwork Wed Jul 31 13:01:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 50830 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:12d6:0:b0:489:2eb3:e4c4 with SMTP id 205csp459835vqs; Wed, 31 Jul 2024 06:06:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXnkwBXKis1pHamooICLf8DUbQ276XkkoHxXjYRpGawKRJ+qPwlcgnMRASeewEYXTRSu94BRT4Pz0s6TTfwI0pcIxdXGTsBUCXokQ== X-Google-Smtp-Source: AGHT+IG9zqEtLLqhbCOdosJA+/asyHGXsXC+ihmyxijVNC8ISODm1T2gkHBVawMGHvVg2vA2He/Q X-Received: by 2002:a17:906:6a02:b0:a7a:c256:3ce with SMTP id a640c23a62f3a-a7d3ffb76c5mr853329466b.21.1722431216951; Wed, 31 Jul 2024 06:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722431216; cv=none; d=google.com; s=arc-20160816; b=uqpD6kzOvJn5idC43/QInmiIkpSoT1+sN3zHlI3rsVxWZAgbgTCZFKqcTdX3tv3Lgh zcrgfThvPRXhRwEWhzAAgDhCdb03Gf+OleBfNuFHwpwhhaXez5fnuVYwK3f+nJsEj7Gy LVDLzjmhJVeRESdjrAiueKWjD2CBgeintxxe6vAwcx1+cn5T6Rf/E+FgnbyFmUAwMn9+ bkfLldgWK6D4pDyruMEQFY2Os2ygwvIEI3aeo/SoYwN6lEarPVFnJ5qhuuqsxlMk8cRf Bjn3lZOTabmSnn+JZvhV0VcV2etgqmI3f15cCAngEQqjkQ5FwfVzcWahKbViOeFJwLKf 8u9g== 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=9Apnc1LZpHuQcFbMyc03Le4LjfHYM0+NTyAXRofylrw=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=o6dNKDdEk960jzX77YO81BEQrRqYDxGX8fK+4inY07/2ScbxbfuwipAZ3Vg1dAqOFZ 8boScHNTfwDuHiA6ROjU8CV9EPM2qbj9AhZuHhXccwXKgg7ZuGtYd8NzlCRhhCIKxEP8 KSTAwz6gjbn+3S9pS7VKCnAvQBOEnqN1qIj2YbNHClb+ewcmVGD+4AWbEI13dsHsC7is JmG25eMZawzAImioQhTswRAP4CNlW1BEppknps/N/+m6sWseSwb1Y/eGjHHH+0FaEK2n A+5lyu1MUqvifcSP5+nhhyDCHcDZ1EznU+jhPKqbcFnN0Pf46xzL+Re1qUQhrySwKp/+ GLKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=iZEoxDSQ; 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=gmail.com; dara=fail header.i=@gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a7aca80bff1si924195766b.253.2024.07.31.06.06.56; Wed, 31 Jul 2024 06:06:56 -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=@gmail.com header.s=20230601 header.b=iZEoxDSQ; 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=gmail.com; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D229168D7F7; Wed, 31 Jul 2024 16:00:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 02E9168C17D for ; Wed, 31 Jul 2024 16:00:43 +0300 (EEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1fc566ac769so36758365ad.1 for ; Wed, 31 Jul 2024 06:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722430840; x=1723035640; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=LuufGT2FFWcVT5m5+YWdzzjBL9hzpbVOzfPwXdHZnic=; b=iZEoxDSQtiZnTtLjPZzHFsDXP4f3tYTu4vDp+3h5sFLLpQro99+mlDipJyEeGN4FDD 6wTwpGlrxldquOxia6yOP7zDSYqGcWOIz5seqBp1s7kK9TXvPyKBx4kUBqQN7cHlP7wy W0N45AX/9evu1fDadva3QuQB44zIsJIfrUwvYJE5hQMhpIfZiwm5UWarmqDruuaeNWgc FhJf4AygOzL5yMU85u1XguVX4tCramGGAZxDOVFpWZrA50jYiGiT+CtRbwT0A1R8ZA00 5+g9ufi9bQXukHstYIlH9F+LO77WH4shw+AEiSImbk2Qp+vuZkLfJLUHSvz7yrftzW/B ERkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722430840; x=1723035640; 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=LuufGT2FFWcVT5m5+YWdzzjBL9hzpbVOzfPwXdHZnic=; b=lrU5bAogSe2oqaO1Apf1/JE9q2TpqoRw1+8D37vKSDSCnkSVd6Y4acN1RwmxZyv17V ps2fpfxnnn0eIqoEDJARjeh9k/14esjGI1vnSWiRXWuv/ZIqFbZs+Y1DEmNN3LoqGKh3 AuBo37SgoSV3D5lTXXCrmu9LoVhrbEJDv0m8qSeYPoHSQoc0H/3iHH32aaLfRVia1lqU 45z3vFblmHP9/v+v+J4x/qNCRjoNXxr02Rk0dzJMOmKL/lpDOzGyoCg5eAm2SlyW2GnW cuGB1rg83xA7VD9wpf++CzbWFzyOEYTTedVUDpRwQLYudvJyp9IKLoDL6eMg6K5n07ja Pq0g== X-Gm-Message-State: AOJu0YyaT+Y+ZAux0SP7pWne8kPnzj+d7wSKiqNO+3VI2wy2hXdQItCg XF3AoQ00b5AEjfs4uFdlq9tLZTZCRH7iFhhX3fa2XOkwEyk86cEHTMVN8w== X-Received: by 2002:a17:902:e88a:b0:1fd:acd1:b63a with SMTP id d9443c01a7336-1ff0484205cmr122330615ad.50.1722430840284; Wed, 31 Jul 2024 06:00:40 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7c88a67sm119964535ad.11.2024.07.31.06.00.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 06:00:39 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 31 Jul 2024 10:01:15 -0300 Message-ID: <20240731130115.63422-1-jamrial@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avutil/hwcontext_vaapi: use the correct type for VASurfaceAttribExternalBuffers.buffers 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: aeMJTDuD1pIO Should fix ticket #11115. Signed-off-by: James Almer --- Untested. libavutil/hwcontext_vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 4cb25dd032..15fd84aa40 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -1225,7 +1225,7 @@ static int vaapi_map_from_drm(AVHWFramesContext *src_fc, AVFrame *dst, if (!use_prime2 || vas != VA_STATUS_SUCCESS) { int k; - unsigned long buffer_handle; + uintptr_t buffer_handle; VASurfaceAttribExternalBuffers buffer_desc; VASurfaceAttrib buffer_attrs[2] = { {