From patchwork Thu Jul 7 22:29:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 36704 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:8b27:b0:88:1bbf:7fd2 with SMTP id l39csp5187862pzh; Thu, 7 Jul 2022 15:30:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ulf18Rk//N8R/o7Py/q2RiyW+Vo7Od5CIc66b/SMlUJeGr0YoRoLo8zTHM48YHUYGL7ZKK X-Received: by 2002:a05:6402:84f:b0:437:6293:d264 with SMTP id b15-20020a056402084f00b004376293d264mr459335edz.317.1657233042975; Thu, 07 Jul 2022 15:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657233042; cv=none; d=google.com; s=arc-20160816; b=rn3T8XBM23j3eolvUtM2+v+VE64GVfy+OdhM676qofKT0XdSFuokG37tsOIjfECBwK zmnAO12cbbnBxrJAzUzdAtzMKDcQcpDTmps7tkg0Cxp7fGF2vl+squGFiHNxRVcJJQit DgvKNYEqrgNIkkjc70YLCZak+2lektp4N3H3+NnellT2l8hs/AbG4SE8n+Ndi11ZCCaG mlCI7FBphVwwZaqwKrBiyaLW7W0phShlg8dR9HBRhsj+iRG1112WZPQCkUXKnO1+iRlL Yq5P94tOcOxDxaelnLmDDA72InArRHncwGJjvErN1W/oQ2k4mPj8IrqpfVpBRe+sXKpr YPuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=Zb8Vzd7Az+EI+4bJ9A6bQlsRPtbMS7tpHQNL34GIyiA=; b=abBt9g8B5B3up7mEK1cAl0xk6Oo784O12c9V+4lWFoCwV6jFgBehZVNfOCjhAa9NN3 52Tl4v+zfdN0iA5jsa0syjc2YwxuSceOqY9+bGKICRAmzwKRJfFXBTOz+HHL3pA2aG/s qeg0TKjfUiURcxalVklZqREjryQGi1r2wiLIfzpmsquEoc6qD4XJOjLjtH10xoKgY0n9 htiy1mkngpe+5rgNUKevaVNQQgQEAO6JusSYMSOBkw9i+D4gaURlfDT6bsWVo7wnidZp mw4vDZZNWmqO/d0UETbBguR6gCO4CIBGgLLWgItnVrr5lblG/sBDFmdRVAej9Ua+/We1 Kr4A== 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id js9-20020a17090797c900b00726b4f8d88esi28452645ejc.78.2022.07.07.15.30.19; Thu, 07 Jul 2022 15:30:42 -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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8F09D68B830; Fri, 8 Jul 2022 01:30:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 520D868B830 for ; Fri, 8 Jul 2022 01:30:05 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id B5039E7626; Fri, 8 Jul 2022 00:30:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OV-gJdxzwzyB; Fri, 8 Jul 2022 00:29:35 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id A708EE7620; Fri, 8 Jul 2022 00:29:35 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Jul 2022 00:29:29 +0200 Message-Id: <20220707222931.16118-1-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_zscale: remove some unneeded initializations 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: RxuoA5ewHz85 Signed-off-by: Marton Balint --- libavfilter/vf_zscale.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index 44cb4b9c61..6861eef278 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -149,12 +149,6 @@ static av_cold int init(AVFilterContext *ctx) { ZScaleContext *s = ctx->priv; int ret; - int i; - for (i = 0; i < MAX_THREADS; i++) { - s->tmp[i] = NULL; - s->graph[i] = NULL; - s->alpha_graph[i] = NULL; - } zimg_image_format_default(&s->src_format, ZIMG_API_VERSION); zimg_image_format_default(&s->dst_format, ZIMG_API_VERSION); zimg_image_format_default(&s->src_format_tmp, ZIMG_API_VERSION);