Message ID | D41CE2FHVJ9S.1UO5TZKCUPZJ3@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1396468vqu; Sun, 8 Sep 2024 20:24:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX6tYRvlxfnHrLqLjwqMqO1W8IyQuXRyg+HUavKL88qplaVY4fplS59orl0eOS5pdIK0TwghNB5J5FnWTGch4MI@gmail.com X-Google-Smtp-Source: AGHT+IHFaZ3H27DPoPwTNw0KVHrQITVguhp2ZcjNGHJQaMr7toY7M2VgZUeDGTKI54HmUY+ssXtw X-Received: by 2002:a5d:5273:0:b0:374:c69b:5a16 with SMTP id ffacd0b85a97d-378896c8058mr6519233f8f.50.1725852255027; Sun, 08 Sep 2024 20:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725852255; cv=none; d=google.com; s=arc-20240605; b=P+NjBVicrriaMBvK1q/6McVU04qY2j+yGPFENDpmcfhd4tou7GAjfjgVYtlOTM3lzL qLltHuIhRNPqUIVb/mGwNBtEpdcR4S/ZzTqnK53CSdsLmzq28VW805NczEkHIDgwM81G 8B/cGuFde8qhw8vmKL5lc9LI/qxm2G/OmHVwg/SqIJTzA5c426mqRfpRciqbtx+jh5IG Ee/fA5KI71Z/vrggklzArxyDqWXg30F5A2s++0D91C4NXJl8fvxna/2rju2rv2IaJz82 xgRjlhfcKgNxpkHpgl8hEidIK275y/o+ickMsj8GpQtjUchRYQzYR/mKdOPunAW5t5c5 hXxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:date:from:to:message-id:in-reply-to :dkim-signature:delivered-to; bh=e5If6grDz4JtLmJxK4RVWgwA50zpSYKwYIXfypd8TnE=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=NYlw/G9AssahZRBpN6fcs+68KQheRkVHD9QlN13JFjwJY0fZd/p/Q0+ct48Cwe/4vJ IZWr2RdkCenog1/1Upg9037uBhDvhZMMjMGtDD1PsvEP8lepEtQbeSftwIhiDiEH2u6V cb6Iwt0jfF66fnxsA7CqkvH7Dfbrq121Z+hiYHPde7C3JODZU7Ae/2wzWMdhXZ1r3anc kT/1J31cDTDYwN+b7EHGWASaghhKzJG99fwV/rAhj78PMkFA83piB5QrdaYiGwcIdD+r 5ivMKhHmsl402qEHWYKJ0HX4tIQ/F9+6YQaJeD8Dt1/Wh8hH/r5vnhspYE6NotujqRTR LVEg==; 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="Ioot9d/G"; 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a8d25d8e9d6si325907566b.895.2024.09.08.20.24.14; Sun, 08 Sep 2024 20:24:15 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b="Ioot9d/G"; 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 7012368DB8F; Mon, 9 Sep 2024 03:55:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CD9CE68DA9F for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:07 +0300 (EEST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42cb9a0c300so658065e9.0 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843307; x=1726448107; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=bmgaHAOhUaJTnYGjC0LD38C6Dj6XO0i8Q3lPg1FU4X8=; b=Ioot9d/GbRriifQ3pIJwuqZedtZjyqQSs89tK36hsaPy4iqmoMKS93hVkiRIrj7MIo 3tO7QpFOrLED6I5YXuJ4io8jmuTW8oMNxszJh7IQClksar2wRiB6XOXGkSIPM/a/HEBi FT+KKBQnWnKYmBwKYHb4yBypu6E5RIwEnWv+OrJGD0rHtzEDeafNoQQd/WoxzmDL6MsP VMQ8guvgLR7zsnyZrh5qPH/CbaVKktSQ36QAwIYIXKhAOaDGYcR1MQEY3fexmTLvG4Jh pTfcSZhdXfBxsJR0l3jobOy7LVLmW4UjEKjWpUr8HhQTlH3jgmIWqPmG6Hc5yTNXu96s /zMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843307; x=1726448107; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bmgaHAOhUaJTnYGjC0LD38C6Dj6XO0i8Q3lPg1FU4X8=; b=H327PtJn3ofIVVG0r2GCFq37SGM47HsZ7Ov4ReW95rNFbt1yM5kVla6YDCYB6OXn5/ JVPFRgCnGxqwnge3GNZJIgXXMGfS/iLW274L61dEqCdPHjyIaI2CEISNS6ZqDMo3HCqD /yM7QwR+JtS9Ptjsvqy624W+5Za5FewAbKt2kp3uP7XoAnfv6guFqZQh7dDvJdo7LXoW y8HNniaRLlPSJa/x638a0k/5qZvNGSzEvmkHbXUNofJwWBrGCTlnii/irO7mZBwllFk/ kJ0hiR6bVeHnU/FrHG/sigJGLkR0i2B6GmNRd5rwAE3S57lTaTJ9dbyIqTNZ1dq6Um70 cbRA== X-Gm-Message-State: AOJu0YzYg3PLJgFL6hXv8mtafHS72qfblj78WwwwMYlmwY8GA7N4S7tR Cnk8eUPtQvwgOMUPwrKSJhqYh0b10BePoG/rHcYqL4E+a70zs4XWtaSgnQ== X-Received: by 2002:a05:600c:4f56:b0:42c:b037:5f9d with SMTP id 5b1f17b1804b1-42cb03763bemr36789475e9.3.1725843307254; Sun, 08 Sep 2024 17:55:07 -0700 (PDT) Received: from localhost (p200300cccf1178009d94fda8472792f7.dip0.t-ipconnect.de. [2003:cc:cf11:7800:9d94:fda8:4727:92f7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895649728sm4583399f8f.16.2024.09.08.17.55.06 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:06 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHVJ9S.1UO5TZKCUPZJ3@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Sun, 8 Sep 2024 20:01:15 +0200 Subject: [FFmpeg-devel] [PATCH 07/60] lavfi/vf_psnr: use av_err2str to simplify code X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: u/kCQm7dEigv |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
Quoting Marvin Scholz (2024-09-08 20:01:15) > No need to explicitly specify the buffer here as it is only > ever passed to av_log, so av_err2str can be used. > --- > libavfilter/vf_psnr.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Looks fine
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c index 1f02811806..4a5db5df23 100644 --- a/libavfilter/vf_psnr.c +++ b/libavfilter/vf_psnr.c @@ -290,10 +290,8 @@ static av_cold int init(AVFilterContext *ctx) s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { int err = AVERROR(errno); - char buf[128]; - av_strerror(err, buf, sizeof(buf)); av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n", - s->stats_file_str, buf); + s->stats_file_str, av_err2str(err)); return err; } }