From patchwork Fri Nov 8 15:38:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ronald S. Bultje" X-Patchwork-Id: 52638 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:2fe5:b0:4a6:1c7:11b7 with SMTP id kw5csp2289200vqb; Fri, 8 Nov 2024 07:39:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXwonG7oZJ9QTCJlXpc60JDDnfWM6h8hyxeutZefJhVJzjTEOE4NPkMU56+80ThA7r/8FIrpZRgm1KdhUBlRdCl@gmail.com X-Google-Smtp-Source: AGHT+IHOJrsmVGQ/2HXu3Tcy5s3BMGxEnYwZA0W+XUTZcaW2OiYiBxkszHABIq7TnyGMQd4xa1N6 X-Received: by 2002:a05:651c:1515:b0:2ef:243b:6dce with SMTP id 38308e7fff4ca-2ff20185abfmr17212971fa.10.1731080348757; Fri, 08 Nov 2024 07:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731080348; cv=none; d=google.com; s=arc-20240605; b=iiUJy/wmPfoNRa3izSv4NNYA95pSeI7yBcxzdK94eA4hl8Vnm5qLaasK7v0USAhgPs FRALN2jO0sBc4cwDe66UAvZiWluTd1GvtYnY/e0hXr/hPad7ztwRnXBPDB3PjwzxBuCh Mnq3eybnmvKtUZzlWWyHo3zyPP9bx0yIn4BZ0zJ+XTmADp7qq15ufYgvSsyUrKEkC5d8 49XtZacaG15gWPCHlkDoDN1SBsCbL9UwVKEOXu7hVbtXSCBOyDpkM86xOu5qzNL6/3hQ ZpnbXmLeoF79IIpk3c1gPqEfupXwEywgK5Dx+EAoxeDUiaKvDmEg3+NT5KI3DZKyv/qx T4+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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 :dkim-signature:delivered-to; bh=TFHm1zp066QHouoze0mbSjEkpxuJFzinzUb2QY4LrCs=; fh=dyhp08PUy+iX8L+jQy25zYl+ZgxJ5aDmyhJySbcsKqQ=; b=Hdff0mQLZkqL+IwBa1XDdOW5Xqa4A57Rfi4pfr9xm/3sa0CE69Zs5t6uC9eNZ3LmSZ 3OjsRjBDe6GI/L/sw7Jk8XWVLpBsWvaCPM2S6yWS3yWpx1duu+cU1JftDCoGjPFux+Rk VjShWm6FJvhnFL9XyXEu7gegj6SvyuEJCRkh923R3YS5tZKdL4odJE+u/5Eq0uC1SvxR XVPfvKcZKtS/wWPFibQq8omr9M8yk4aVdcygE0um2J2fOoo0tfhNHsMSp9aHX1L5qmQ3 MjFkpiybsSXetJ0JIzWqzU5SVhLLJrdP1/5jZlLaDP3eUC9NKUn7IXpZH5ljLzbhhGe5 vVQw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b="c/6/KMXU"; 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; dara=fail header.i=@gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTPS id 38308e7fff4ca-2ff1796993dsi14545111fa.214.2024.11.08.07.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 07:39:08 -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=20230601 header.b="c/6/KMXU"; 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; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ECE3768DDD3; Fri, 8 Nov 2024 17:39:02 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A189468CEE1 for ; Fri, 8 Nov 2024 17:38:56 +0200 (EET) Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-6d396a6f6aaso12698206d6.2 for ; Fri, 08 Nov 2024 07:38:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731080334; x=1731685134; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XfgQbaWTLXMGx/POf8A3z+K4x3E4fCBnv/v4fq8gQFQ=; b=c/6/KMXU4gawGYTkKoZQxVcl4Bi+cBvDHNVXCoM6yVjLlr7XE3xcVU2djWaG7D8wbD cumechmDX3Te+Bv7RXCiBInu6pOo+DjqYAe0jZWUoMgUJJRouXBCZZDovwNkaXtZz2Bt oEGsS1ctDIM+oULQic4q3bqNKMvYnXlg+l3Wj8BOADkU0n4rqsVfpD3HYgou/l4DnrjN JnFsZx1f4MQUpgAR6SOjPgGsRBkZ84Q59LrcXOc4ms875MzkH6RwhNfc0hOrp35nc6cx uACS1sbYaNzSAJDeYm7CPl52Ryr7ZXEEnqOlDOtt2GqefqZjYb1hjcL/2tfQtz4ireEp 7pkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731080334; x=1731685134; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XfgQbaWTLXMGx/POf8A3z+K4x3E4fCBnv/v4fq8gQFQ=; b=qP56FpuUd9zXDT2rFyTBxTA2GStrqIZPCLOZrVznu8g4qs1tHVYhsCKNuqMQNdiGb0 XuKQfWJRZVPQFQG+vXWFmlTGWzzzGvHLWTvYJajggLHHOyPdKWbp/FcamzBU1Gk+MJH9 WNDPGPeptlG/Fz8kd+BjelPahTrGuiyJ/H45jXMHu9/NOUgqKZHDKmJ8sxa+VjghmkOG OpCIuB3cxUA3E0X+Kvq/jxd/vAjRPyEAW1slTfuo5NBIx7AjlPIjDi03rTw+OifIggMA VA7soDh7IvVGM6SK2UGMT9AjClgvrMYjoYVSVif1cgPRoIQC7GWHCC7LrN/VZwk4joYF i+oA== X-Gm-Message-State: AOJu0YyDVmeGMn2mOU4x0olJftVb/PE/8DsExA886gHTEwygyEdkNSWe 8MVNUqjuxMYNcyRAiDH09HzHx+ZPY+ktK0z9fyyKQIJPZ2edsnOs2F4wqQ== X-Received: by 2002:a05:6214:498e:b0:6cc:2cd6:24 with SMTP id 6a1803df08f44-6d39e1a5c68mr44693216d6.36.1731080334474; Fri, 08 Nov 2024 07:38:54 -0800 (PST) Received: from Ronalds-MBP.lan.lan ([2603:7000:3a00:b4d:4934:5541:fa5d:e297]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d396208f0esm20372996d6.59.2024.11.08.07.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 07:38:53 -0800 (PST) From: "Ronald S. Bultje" To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Nov 2024 10:38:35 -0500 Message-ID: <20241108153842.57138-1-rsbultje@gmail.com> X-Mailer: git-send-email 2.43.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] enc_recon_frame_test: don't print an error on EOF. 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: "Ronald S. Bultje" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: ERwSAUH3dd6a Before: $ make tools/enc_recon_frame_test $ tools/enc_recon_frame_test ~/Movies/cif/bus_cif.y4m libx264 'tune=psnr' Error submitting a frame for encoding After: All 150 encoded frames match --- tools/enc_recon_frame_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c index c6da6750fe..83cc8343d3 100644 --- a/tools/enc_recon_frame_test.c +++ b/tools/enc_recon_frame_test.c @@ -178,6 +178,8 @@ static int process_frame(DecodeContext *dc, AVFrame *frame) } ret = avcodec_send_frame(pd->enc, frame); + if (ret == AVERROR_EOF && !frame) + return 0; if (ret < 0) { fprintf(stderr, "Error submitting a frame for encoding\n"); return ret;