From patchwork Sun Nov 14 18:59:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 31418 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp4805431iob; Sun, 14 Nov 2021 11:01:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvERH6giMXJcgO7ksM+yUK0b0aowiR8htJMdXgXwumms3g7nn1eDjYSROFA25TIneUrC+Z X-Received: by 2002:a50:ce4a:: with SMTP id k10mr21426605edj.31.1636916460906; Sun, 14 Nov 2021 11:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636916460; cv=none; d=google.com; s=arc-20160816; b=Oi+RkA9IREyfYtOX7zZOzdCrIdEFUnHg5uZTnZSrIxydgZBqDLrEjGWTxrPg5suV6W v5EQdNbILbS5LsLA/nezBk4ptiQQcJsllDDbd3FDfIW9J8WsBtZGBqNo+S5VtiLtpXxi yajXsAuocyFooE5oyzL7bLdrla1TVXTXEEYoU4JLxW+Me1gQiR1dsNgljG0BmI3ib67v udCBZ3QYCkbltp5z15Nb3NORvzR2b+ZyAQzaE3B+XkvfKzbEkOSX82bzldOvK2Ji6Cwn LKZVQeD/HDxgwqEXjPyP/TyUvmF1JTKQutwi3dZEFduNnU4fpJnetRudSQLPQ/Czs8C9 yGTA== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=PnF5PQk/S9Tstsr+zCWgHAltJzoT+eq/ISEe+Sf8qwY=; b=HRN+j7Xd7mqaErtqjQkhwnrKIdWLSESUOORU4dxozD0yM9XNT8lLl+58+ZlTEEsh+g pWkmuCk0r8NqaRL7a51WMOqdy7Eq5CZWHAxBfeBJzCzjQExeKVQm8OcdQCOx4MZzX3bT S8iH0xhwqNDh1mMJrQVeGpdK+Ld1qL+sTcnMw+TdHWnBVF2V5mvw+PSo5C8lDvVQLrNx FsH/Xl4f6crPsVHBVtV/qpzPQmXzk7Q8Ckc1Pt2dVZCQEXU9Lnl2czC5tAw6u3rwWyDd 6JvraZ2hK2EWNUc4fgO7xFqXb2qYc4uWwmMyDLGhb4HrU4WDhWCWLWvfjZBXZUgFecII bnrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=pd1Ye8aA; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m2si1799097edc.497.2021.11.14.11.01.00; Sun, 14 Nov 2021 11:01:00 -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=@gmail.com header.s=20210112 header.b=pd1Ye8aA; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A9D9268AA75; Sun, 14 Nov 2021 21:00:36 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 47FD4680CAB for ; Sun, 14 Nov 2021 21:00:30 +0200 (EET) Received: by mail-ua1-f47.google.com with SMTP id w23so7289577uao.5 for ; Sun, 14 Nov 2021 11:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ouQVDMlBnbDTsOkp6OnGYBGJan021RvxckhOn1lr9u8=; b=pd1Ye8aAZ6LfBV866EgChrhDj2s7ilRMC1NBILww3LfoPCVLbTUPL83llHyNCBVMrY ZcTfjsIknLp9ezcOb5ei1GS75o2BQfAWXFtOLMNvvoHkFP5iuodPgwWRzA+0TBD2gXZV VV4g09R6JGENTRSeyG3LdljfXvhmKnRDF2a0q4YK7jKLKAD55IFMDoSnt3jNUIHo9NfE vn1+FLYjdkAAxx2fwsfCASD7rHdgvIHLYop5HHXCExSv+povpFq19fwsqe6HRJ/58RZd K3PuYHx9znbaYqLkChFLVO8vdV50Bopkoom3dkmJs5dCMKz5OfQNf4emFx0GzftI41KA rQgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ouQVDMlBnbDTsOkp6OnGYBGJan021RvxckhOn1lr9u8=; b=mAF/ZIiF/c4e9GFoPDTlEOibelOBLLIOs7EgBjf0BrY8fbz/DhrMQBXdtlaXEgU5qE 7gPGwlbB7sqeqHeL2mNH3CtjlvVoySKZCWKcoLzHKlh2EZUah1ZG0scu+++AJhgV+QF6 fpjVFtg/K4+x4qbW5tscPh6xNfCUWNxo82d9k+yE2FtLpTcMVeGSM77n9HoOih03aDJA HzqfXSqiMmy8nCChfG9lP62CcRdhNh1HNYHfPrCj36zm52hwaxA03unsF1Hre/OOQtfg QpH3MXOsDoFH4lnfHsV18JUH+ako0zk/G+oYcXfaJkptUaOS/8b5rVTOMLSMSLobUMJh 1UIg== X-Gm-Message-State: AOAM531VkPrgTmQ1so95AqLWU2+/PiTHW5EQrgISIgQSYGG9u35Q/xxn iqO0TcVchYWh/wHMSsQ+XEPyf55taBQ= X-Received: by 2002:a05:6102:3ed4:: with SMTP id n20mr34944722vsv.57.1636916428343; Sun, 14 Nov 2021 11:00:28 -0800 (PST) Received: from localhost.localdomain ([181.23.88.82]) by smtp.gmail.com with ESMTPSA id l190sm8180638vsc.26.2021.11.14.11.00.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 11:00:27 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 14 Nov 2021 15:59:56 -0300 Message-Id: <20211114185956.53923-3-jamrial@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211114185956.53923-1-jamrial@gmail.com> References: <20211114185956.53923-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] ffmpeg: remove unused hw_frames_ctx AVBufferRef from InputStream 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: pfC5SRAczdCV Signed-off-by: James Almer --- fftools/ffmpeg.c | 6 ------ fftools/ffmpeg.h | 1 - 2 files changed, 7 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index bde5a2f603..05e2a75f1f 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2925,12 +2925,6 @@ static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat } } - if (ist->hw_frames_ctx) { - s->hw_frames_ctx = av_buffer_ref(ist->hw_frames_ctx); - if (!s->hw_frames_ctx) - return AV_PIX_FMT_NONE; - } - ist->hwaccel_pix_fmt = *p; break; } diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 2d6c5416c4..6e1f4d8db4 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -380,7 +380,6 @@ typedef struct InputStream { int (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame); enum AVPixelFormat hwaccel_pix_fmt; enum AVPixelFormat hwaccel_retrieved_pix_fmt; - AVBufferRef *hw_frames_ctx; AVFrame *hwaccel_frame; /* stats */