From patchwork Fri Mar 24 00:25:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 40786 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp163456pzb; Thu, 23 Mar 2023 17:26:26 -0700 (PDT) X-Google-Smtp-Source: AKy350bxV52Jk74EEPrk/7jtclgZbkG0WLg2avLzOKoqOOVXafyLWtO5As0duFbCKtaXTJvPSEoX X-Received: by 2002:a17:906:15c1:b0:931:fee9:e961 with SMTP id l1-20020a17090615c100b00931fee9e961mr725463ejd.62.1679617586125; Thu, 23 Mar 2023 17:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679617586; cv=none; d=google.com; s=arc-20160816; b=hTXp5x0WKLK98kFrFtBh/vwfCpMdH6Yb8GQXgrXXQK4E4yIWjPi+m3YjFiXrc01RhC Rmi337TekwF/sQ1jqTHsKoWjj0MGx92yK0NvWlMamxIqb4YdNKOTiTfsO8HVGI+IqZUA reZVQo4Y1CTRQQqpQ69DnVorx7FGiRXZ7q/aH4ouQQZfsbO/rjyzJBpzs42eIObEkOcp Rxi8RZimtg411oiLadCvjHJw+QZdE5k50cg9p9uJZLNV4MD5xDkivBgpg4b6zwyD0I59 wQAcDtPCIMelqsca0B8tjXkkfZbqUyw4gWSVJU2TWcKwW7qLx47j7l6OZ4LojF+tKIls f3pA== 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:delivered-to; bh=j5r2ONNxgvzutQ0SZKuvL0IuIkFwTIQFZOnLazvA12A=; b=pu0j8O0hcp7qlGGyvktpApRd/bUsuLaktaK9DAqRoW4V+7W4WSPsyg+3i/i+/Xq45q R56gOOF0SnxIH5i0Nw2lI3G13FitJBayYWDe9gGkf+LoI2hKgVHrMwz5AxBBQ//+2/EL KD0/YHqdZmNvASvzrYe6csuDjMo7A+F5QP8EfVzPf1eUrzvnogESZ/UsSEzQIKamR4dJ exuFqi4YT+6LkuLLvlk/btJq00fTDf/tO7kmFLPN3oZ521jgE4f02rEz0uEdRtOmM9TN XKfeza6m+fkjhhLhsd7tuqQ9J7eoCsAanK62j7039tdFYffWMvo8ynMpiHT9As5T96vo KJYQ== 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 j2-20020a1709062a0200b0092821890f23si18430698eje.402.2023.03.23.17.26.25; Thu, 23 Mar 2023 17:26:26 -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 B3DA868C34B; Fri, 24 Mar 2023 02:25:53 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6B0D868C334 for ; Fri, 24 Mar 2023 02:25:46 +0200 (EET) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 865AB40004 for ; Fri, 24 Mar 2023 00:25:45 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 24 Mar 2023 01:25:39 +0100 Message-Id: <20230324002540.3227-5-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230324002540.3227-1-michael@niedermayer.cc> References: <20230324002540.3227-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 5/6] avcodec/tests/snowenc: Fix 2nd test 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: fz/08Go3PofT --- libavcodec/tests/snowenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c index 19635899d9..37198cd4e3 100644 --- a/libavcodec/tests/snowenc.c +++ b/libavcodec/tests/snowenc.c @@ -93,14 +93,14 @@ int main(void){ int w= width >> (s.spatial_decomposition_count-level); int h= height >> (s.spatial_decomposition_count-level); int stride= width << (s.spatial_decomposition_count-level); - DWTELEM *buf= buffer[0]; + IDWTELEM *buf= obuffer; int64_t error=0; if(orientation&1) buf+=w; if(orientation>1) buf+=stride>>1; memset(obuffer, 0, sizeof(short)*width*height); - buf[w/2 + h/2*stride]= 256*256; + buf[w/2 + h/2*stride]= 8*256; ff_spatial_idwt(obuffer, s.temp_idwt_buffer, width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); for(y=0; y