From patchwork Thu Mar 30 22:04:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Thompson X-Patchwork-Id: 3207 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.44.195 with SMTP id s186csp1760823vss; Thu, 30 Mar 2017 15:04:54 -0700 (PDT) X-Received: by 10.28.234.206 with SMTP id g75mr311289wmi.54.1490911494638; Thu, 30 Mar 2017 15:04:54 -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 z50si5246960wrz.218.2017.03.30.15.04.53; Thu, 30 Mar 2017 15:04:54 -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=@jkqxz-net.20150623.gappssmtp.com; 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 D60DE6891FC; Fri, 31 Mar 2017 01:04:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D9607680646 for ; Fri, 31 Mar 2017 01:04:44 +0300 (EEST) Received: by mail-wr0-f169.google.com with SMTP id w43so79846538wrb.0 for ; Thu, 30 Mar 2017 15:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=TQi7d3aNy124S+F5ky3alIYfLl0JaYqvqkotzLwAYsM=; b=uS7BOZDrtdXwrdivfsgqm+VV6AR4qVdxPDBXJSexUYqrkBATBlZFKMAH6MMACAtFtB 9hQq+tafx6jnhdavHDW+Ajd9LxXl3rdqJ6lhluUVeWwSN9TvKypVgCWgiywZBA/MXqK4 BvwGzXAXsREtg/VxPzufZPZh54IvL4W8mNpmYGIUaIkwRWcwM5A6jogNJ/IOZ317eKOL LtpxsbGsRVwaI47yqvF0nEAyCYk42dCb44BntkEoNHlhhD5Bs77ejNIeZ6BGzSjuqjRm FmMuLnZQolzYq5PCdpkV0i/jbunKi6clH2QUlCpOjOehMKPT+ezbFyp12k5sKuBRZxtd ICTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=TQi7d3aNy124S+F5ky3alIYfLl0JaYqvqkotzLwAYsM=; b=d/R9gbld4T+hYJwcdfNEDEgQVclBW8A+diJV/wUWr2S7Jbw46PDN2wcshBmASAzPV4 Be76R6/6bwZVc0qv4Z8iBlLjHszk5+LH2EnawAYN0Fe1DuuOVY8M8v4JAUzMAq2YaVWT ho44WteYjcYFUo446XmFrzv4Xl54g0oHQ74ECnWyPuyvHzVbf1T+xmj5Hb93Y7D2rb11 fya/025uP5i6LS0eMZWcVsmb9pM1Q6SEsZ4hN0q9/lObBCtEh+iJMkrqVEiPaDmK3lfY Coo7O4It0ptYtQisn0UbYb46IzRxrgQSIeLtCp6NcUD9bz1RmSAW4xa1g9MEEOM6qlG9 zl6Q== X-Gm-Message-State: AFeK/H1sCrfrX9z4Ab49DfzjQtvt7IW8jPX3SivjZ/sUQBI1NuTYq28NJcAktx8R+jZ34g== X-Received: by 10.223.164.91 with SMTP id e27mr1578080wra.115.1490911484246; Thu, 30 Mar 2017 15:04:44 -0700 (PDT) Received: from [192.168.0.8] (cpc91242-cmbg18-2-0-cust650.5-4.cable.virginm.net. [82.8.130.139]) by smtp.gmail.com with ESMTPSA id m83sm461268wmc.7.2017.03.30.15.04.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Mar 2017 15:04:43 -0700 (PDT) To: FFmpeg development discussions and patches From: Mark Thompson Message-ID: <7f293c57-3081-746a-3ea6-f72db194623c@jkqxz.net> Date: Thu, 30 Mar 2017 23:04:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] pthread_frame: Propagate sw_pix_fmt across threads 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This is required by the VP9 hwaccels (both DXVA2 and VAAPI) when threads are enabled. --- libavcodec/pthread_frame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 5b5f5fb289..4e1ad9d686 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -250,6 +250,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, dst->width = src->width; dst->height = src->height; dst->pix_fmt = src->pix_fmt; + dst->sw_pix_fmt = src->sw_pix_fmt; dst->coded_width = src->coded_width; dst->coded_height = src->coded_height;