From patchwork Thu Jun 17 06:10:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Wang X-Patchwork-Id: 28568 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5e:c91a:0:0:0:0:0 with SMTP id z26csp330285iol; Wed, 16 Jun 2021 23:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4HhOKdLl5Mst+mw1Z+tPpquaLJND+JU5NXh0BV76iYtKhlRDox4Y72n05i4qyKf+hnk7C X-Received: by 2002:a17:907:98f6:: with SMTP id ke22mr1527392ejc.533.1623910392421; Wed, 16 Jun 2021 23:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623910392; cv=none; d=google.com; s=arc-20160816; b=cbZbgi3Vnx+YmmIMoNuU5UGwT+36ho9YGQiPgERwDUQE9qDWSe6KLxnZUDDe9VUcyS UtSkT1D5g2NxGQZZhfkPUX7IPzP91BLwAnJdMyOlRnrB77aNilyw4jOgzm7p728W0YJ9 R+n3CAD1Ok8eYvo7/Om5uI2hGlCbjnqN79Q0w2Qmkb0JLDwIqh+dKt6Yxi24F41DcBs+ WcGydOQxiPh5OgMtrAc4WaJfS6pCdSze+2Mr125OTmCWjZbqD0QhDQR3LRnEF37YMMT+ u8ACwOxu/e+2CYMEdTOuU8FNY/8QT3FJsy+ZGTEiyaCwIuymt6p6WHL35FfRLMJynxXP HV4g== 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:cc: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:ironport-sdr:ironport-sdr:delivered-to; bh=aLwA2lVUAxkbfiLCFhcrExLJpOWJyOga98Ng6z43CjU=; b=pP2pWmSsDb2OoQhQKNd/L2Na7x1+vx8dqhQJLssOq40PJVJaWw/Snd/fKKGP5+eOxg w/96hPu5sI05uY0RtHppDEvAiPmv3b8XyQIQ8W+gfa0Ly75B57CYevHVsYd5HCCisVLb 7ariVWKtUn//hNyor9MduB5tNNL8SozZMAPHmsf3+x9qANeSBQYLcj65e/E0ZImsFx3L lGMFYQFyVPLLwXlrPhfU1QGrdF+mPrsM7wivx1TKjgYg3lUz2D1XPwGu3X6bBYE5D+eS R/FvDcJFY1fwQUKScRpl2yk1+B84Rsaly+4+aw+Zuw4ycEy3zhT0+78kz6CZ5feO5Vdh 1YMw== ARC-Authentication-Results: i=1; mx.google.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m6si4481786edc.576.2021.06.16.23.13.11; Wed, 16 Jun 2021 23:13:12 -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; 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=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23FB86898E0; Thu, 17 Jun 2021 09:12:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1C8CB6881D0 for ; Thu, 17 Jun 2021 09:12:16 +0300 (EEST) IronPort-SDR: 6ybo1FxuKGBTA0US3b7metYsIPnOyX7weEItYVVLKwc3WDhhZ3GBd/ODU95UohVKyVxOhRZMrN EE3w/AFolwPA== X-IronPort-AV: E=McAfee;i="6200,9189,10017"; a="291942564" X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="291942564" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 23:12:11 -0700 IronPort-SDR: aURLhMQRl6iLwnauE8vmgLefOj/+DJsyiVToofV1zdh/ZFcoU2KwKXcqlnqGoIyj2tvY38K7r4 utH33WZxpouw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="485177026" Received: from f.sh.intel.com ([10.239.159.147]) by orsmga001.jf.intel.com with ESMTP; 16 Jun 2021 23:12:10 -0700 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Thu, 17 Jun 2021 14:10:33 +0800 Message-Id: <20210617061037.20335-5-fei.w.wang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210617061037.20335-1-fei.w.wang@intel.com> References: <20210617061037.20335-1-fei.w.wang@intel.com> Subject: [FFmpeg-devel] [PATCH 5/9] avcodec/vaapi: increase av1 decode pool size 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 Cc: Fei Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: cShmA/PVTAoF For film grain clip, vaapi_av1 decoder will cache additional 8 surfaces that will be used to store frames which apply film grain. So increase the pool size by plus 8 to avoid leak of surface. Signed-off-by: Fei Wang --- libavcodec/vaapi_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index 958ddf49da..665af370ed 100644 --- a/libavcodec/vaapi_decode.c +++ b/libavcodec/vaapi_decode.c @@ -577,10 +577,10 @@ static int vaapi_decode_make_config(AVCodecContext *avctx, switch (avctx->codec_id) { case AV_CODEC_ID_H264: case AV_CODEC_ID_HEVC: + case AV_CODEC_ID_AV1: frames->initial_pool_size += 16; break; case AV_CODEC_ID_VP9: - case AV_CODEC_ID_AV1: frames->initial_pool_size += 8; break; case AV_CODEC_ID_VP8: