From patchwork Mon Feb 19 23:28:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Thompson X-Patchwork-Id: 7671 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.150.33 with SMTP id c30csp2074612jai; Mon, 19 Feb 2018 15:35:44 -0800 (PST) X-Google-Smtp-Source: AH8x227zmWY40yjkwGZkmDSalXbQ4su1OYzBxah60Lo2zqCuvtTbxpEPCmjgSCx+qYZOQCYl5mTS X-Received: by 10.223.208.132 with SMTP id y4mr6654707wrh.185.1519083344472; Mon, 19 Feb 2018 15:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519083344; cv=none; d=google.com; s=arc-20160816; b=X5+eluqwpAIVhTqx34ctG3PyxYa+d7/9xQFSocFU/YNJ+/m8/I3N11vXR9WWM/GUr/ z8cX02Z6gONL7PTN1dkOub3kVxyyiOabB6nBm5M7tW5+sgk3eVWu6uSoJ4mrqV1cCJIC Pl9OFdXcNixq6CRHuk2ZQLBQ4wDjZv8BN6ljESb4o7jsAcVaiCYxvY1V/zUbKB8mOGBM w3ezjF6G2ewCGzA0T/2wdnnNUYaTfRCJJ9gpwkIHDTJORuYrk90VAYlQLLb0FRAEFxzN 5nqdsF3h0ViNnHgedD1u7xoQF828/ZzpAxuDf6E7hQnrhc6dn8S6pEVnKp7f4JDM9hTT 6/Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Sh0IZj35cLR8hA+N4+U2dYvzcs7yNNFkSkewP+5IbRo=; b=ata/kUD+fC323ULgJ8x2PvLXqj0y0IdCx4wZTJ3NTr/+wJLMUnF+F01r1m0/P71xv6 3SUkRqMneLnuacfQN2XzUzmY6KQX6Wg2VIC92ZQpwu3ZaCzFrdBilTfCdYh+IUx5IGS6 ETrMSttUURTMqHfUl0dbzfZ8cc5PoFd6/1eEoIYuX6Iv7H+8zlQruEssHv4q6/NykeKG +f1C/P5AxUwOSc2GzhhA6ocFw9Shsw0Ca98/U6rDQfOqoVygMQpH6BUTrRsyZvpeJbF0 5Wqy+pLSawU/9+9wPZho41nUFFCqqkXRi8iF+hLWt0CAoqbgTS9ZaMJy4qw0xQ4l1jFE PU2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@jkqxz-net.20150623.gappssmtp.com header.s=20150623 header.b=VJYM2Va0; 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 v12si14384935wmc.260.2018.02.19.15.35.44; Mon, 19 Feb 2018 15:35:44 -0800 (PST) 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=@jkqxz-net.20150623.gappssmtp.com header.s=20150623 header.b=VJYM2Va0; 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 13CA568A19B; Tue, 20 Feb 2018 01:35:42 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AB81368A0BE for ; Tue, 20 Feb 2018 01:35:35 +0200 (EET) Received: by mail-wm0-f67.google.com with SMTP id v10so17970871wmh.5 for ; Mon, 19 Feb 2018 15:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=L1zGrgHkn1eDu2OKOmZi8HE54X6ZLOjeF5nzsouOYdQ=; b=VJYM2Va0QzmJbM829ufThEs2Mkt1vIVQ0l9UDEoBQv2xK/jwij5x5CUXNV2snCJbeo pj9POKeUW4BkZQQvHuCECmeL9NljxSllJ/QlKUOFHf5hp9mH7AoBfsRLyR3LV4zMO1Hi eZLUxXJS0WGY8Bt4SP/cZfJ9OuUv/LYFVVyf589K4KfMT3u0Q7xARITVCi6SMtXth2d0 uXd2x5HDHfG5uTGfPqQMsfVykq8B512cx9P0evrL/mTjmpJmPm/pjxdY6Eojo0W/Mani LVMYQ4F0HNzP5T4irCZ9EWWjRZ+N9/Yee6O4cVmR9hd3Lj1KMWJcIy6WiBh4KLKGK798 Tnxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=L1zGrgHkn1eDu2OKOmZi8HE54X6ZLOjeF5nzsouOYdQ=; b=d938BbBKijjqXVU8g4vw4aAxY2H9klNcATfwXmhfTG4GqXoMCEn/OeVtGVzTSm5NWl qTNbURxh5Hi2KZX+JuNq8+O6Et2ahBsoFkMP3PfrSrtoo68UZqFABccQ/0OQ0a4p3DJd 8EM57lzjt03fY2NmT0dD3tN77Smr5Gujh2uGAjwJph4t2stjc6vrirWRxlXWV1k48iBB 4G3D+zu9lWMn6aYcMKyLAu5n56IbWOfV6ijcDMBWMy53CCFOcjuM/dZVFHVFtatx0dWK gGMlXZ7TLiBskd+BFfEeUScbO6T0IN9S4zmlf0LUcbCdVwGmcXzmMThKyjlsdspWQDKZ 3VyQ== X-Gm-Message-State: APf1xPCRuPk9XyS1yvKIrUJU6DYquK5m3gqt4bwas4gnbWSWpIMpf/bD RcB+eHsemYzBBqqCox6YRHRZNKbb X-Received: by 10.28.109.195 with SMTP id b64mr10812148wmi.13.1519082938101; Mon, 19 Feb 2018 15:28:58 -0800 (PST) Received: from rywe.jkqxz.net (cpc91242-cmbg18-2-0-cust650.5-4.cable.virginm.net. [82.8.130.139]) by smtp.gmail.com with ESMTPSA id 77sm31646687wmt.37.2018.02.19.15.28.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 15:28:57 -0800 (PST) From: Mark Thompson To: ffmpeg-devel@ffmpeg.org Date: Mon, 19 Feb 2018 23:28:46 +0000 Message-Id: <20180219232849.29436-4-sw@jkqxz.net> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180219232849.29436-1-sw@jkqxz.net> References: <20180219232849.29436-1-sw@jkqxz.net> Subject: [FFmpeg-devel] [PATCH 4/7] hwcontext_vaapi: Fix frames context creation with external attributes X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavutil/hwcontext_vaapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 68f88ecd6b..af9a136ef0 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -475,9 +475,9 @@ static int vaapi_frames_init(AVHWFramesContext *hwfc) int need_memory_type = !(hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_ATTRIB_MEMTYPE); int need_pixel_format = 1; for (i = 0; i < avfc->nb_attributes; i++) { - if (ctx->attributes[i].type == VASurfaceAttribMemoryType) + if (avfc->attributes[i].type == VASurfaceAttribMemoryType) need_memory_type = 0; - if (ctx->attributes[i].type == VASurfaceAttribPixelFormat) + if (avfc->attributes[i].type == VASurfaceAttribPixelFormat) need_pixel_format = 0; } ctx->nb_attributes =