From patchwork Fri Mar 24 00:25:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 40783 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp163284pzb; Thu, 23 Mar 2023 17:26:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bBT4cjxCelr7SJ98tgdB3BGKtYOg4+ymr5F/KNBIbfW8TY/a1NktA1rCeGboKBo1hjw/B9 X-Received: by 2002:a17:906:5d0b:b0:933:3aa7:57a7 with SMTP id g11-20020a1709065d0b00b009333aa757a7mr853218ejt.49.1679617561441; Thu, 23 Mar 2023 17:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679617561; cv=none; d=google.com; s=arc-20160816; b=eOiROCf/nC792ui9E6+eboKaX3ZFeDVr7bc/eUQNse4zil3rMA/eyUSk2Sioe0ygod ZIf68O93Q9Zb+/JDTqT3csknuY+7OXFGDgmQekpgaHJ4SwLv6oTOGGv2b75bVZZkYciP mn2uPn9Wz2ezsIfa6oTG8hM3WbOzx0hXDel5c5o669zE6+TAfK+JTd8UmpHUKcMNbCMw RB9LqQzhAwePBdzB3w4+WmMkn4RZmuFV5I10v3v0s17Px8QlfjCFDNGO0GWcpECsmqoa L28J+hDpfdB8Ct9n0IevNRq470WrmKXUAqLB3CQNMVsqwb0EoqcKM+7GgadF6yl6woFm 1kMw== 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=kUX3mB0DRXRPbz03s5ZeRgbMLKDoGnBB8h7AFdGgygM=; b=Hs2uJmGiIKT+JdE6n35wVPBS8fDNGPzAnxST0Cgx72U+MN9lM+LhVO7Cm15uMfHh0V zAr3pzvzijG3PTUZApmH1ULS/ZoBu303Z/khoOwwISof089Gd/2lxWseMtVqRFIWbelj W7D7+V4Kc3sTKmJ4/fKqlJyT7bDXuK8clBlmsSPL0DWOG7lt3MZi7uuQNTMYhSVl0+3c rwaVQ4o18LV2L6emt57wUWqgI90wO+gupeyLeHWn/C5sUmEGB4fmzf3t19oJVOfB8pT1 ZLWfi0w/sF0+T97gIerEJ3T8csS6ck9+xu8wNWRz7xw01aXw7gZloaeYBKZwTUswGTUv 3JZw== 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 h23-20020a170906261700b0092beae94d7dsi16720189ejc.67.2023.03.23.17.26.01; Thu, 23 Mar 2023 17:26:01 -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 5FE7A68C32A; Fri, 24 Mar 2023 02:25:50 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1655B68C18D for ; Fri, 24 Mar 2023 02:25:43 +0200 (EET) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 3CFBEC0004 for ; Fri, 24 Mar 2023 00:25:41 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 24 Mar 2023 01:25:36 +0100 Message-Id: <20230324002540.3227-2-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 2/6] tools/enc_recon_frame_test: plane 0 height fix 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: McM4eLEo0Vrp Signed-off-by: Michael Niedermayer --- tools/enc_recon_frame_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c index 8f09ded47e..1ea2293ee7 100644 --- a/tools/enc_recon_frame_test.c +++ b/tools/enc_recon_frame_test.c @@ -83,7 +83,7 @@ static int frame_hash(FrameChecksum **pc, size_t *nb_c, int64_t ts, int linesize = av_image_get_linesize(frame->format, frame->width, p); uint32_t checksum = 0; - for (int j = 0; j < frame->height >> shift_v; j++) { + for (int j = 0; j < frame->height >> (shift_v *!!p); j++) { checksum = av_adler32_update(checksum, data, linesize); data += frame->linesize[p]; }