Message ID | D41CE2FHVU2O.3USJ7FT28MFOI@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1356668vqu; Sun, 8 Sep 2024 17:56:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUidYc53wq9jlcUWFy/hPDtyZxbuzmIoweberEqkQ0Lw72uwcgVrO+wcWRWHGaS7K1L33vwL8FPs1ILIAM7gjvX@gmail.com X-Google-Smtp-Source: AGHT+IHeYKK+y3Uw6rnhO5auztqPK+cVA3mY40W+vAwr3O7fBce4HD4X18j5pfwAHY7elYWSWwKt X-Received: by 2002:a17:906:f588:b0:a8d:2624:1a87 with SMTP id a640c23a62f3a-a8d2624259bmr147738266b.14.1725843369684; Sun, 08 Sep 2024 17:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725843369; cv=none; d=google.com; s=arc-20240605; b=JV5L2MNr38rNL0/eXB6J1mu99ij245WkMpMj3t3JjzMoBGMFddDX36QTAidWnmv2f0 h4Lo3tkM1oxWKbhYpTZazTsghcShDDM3o0+q5TshVgFnhcrmrRiv+rPVcIgTK6yFLCPq XIMqCDOJZVLInDjblIrFQ/vupnnnyE//HsQHs7rgZJh5fSZxzpb5nBjhmIWlo+g/+PsX CWQdMddSNd1WrkiPOmyvjupFHxc0i3/NfPHgFB7GA4PrN5izEo63xkjbcyi/hehrmv+s C2Get4oal0kKtlAtcKSZycO63vMkY84L3EzrxRDzyJWtblV8mtplRIDi6D1HH/O/E4+B NnuQ== 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=sUGsDTfzE3lqOqUPRBjtaP1qu51Yk2zzT5vJJVkKWoE=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=jj9sI8dcNRlXVQbIuV9ZOUS65hU29gkSa40HRgmz38grj3z4r1sw4X5Nef1Jq9VhQ/ UnL6y63EYjdqgB05i+w+A+ZWd5O6HcV6TU48Pl/lMPOJCSYVuoOKMU4M7n94Il+byW4a vEmShJFkQ+BaxkyIoDTkjSQeaZ9IvtFLot30UCzGden9/j27tqfdDgmZP98uer7O/crW Kd2Qzes7pD/FCJfoBrZ6bsvUt7FhW9jvxeN2Z3CzKR3/hFzuuC4atUcLlqRKYl836074 jGAkn7DKh03M43q7Jb5ULPznxZkS2ojbHK8xfONBC9JMM9BMygKKOjc5BDtMz8c+8piR 6T1Q==; 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=LkOk3ZLC; 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-a8d25c5158bsi289978666b.348.2024.09.08.17.56.09; Sun, 08 Sep 2024 17:56:09 -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=LkOk3ZLC; 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 99BA168DAB2; Mon, 9 Sep 2024 03:55:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BA0A268DA73 for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:11 +0300 (EEST) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-374b5f27cf2so2159572f8f.1 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843311; x=1726448111; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=o5YbG30AsPN7oCSVvo9hkRXZvSwqET1I+AB6ltcLJjQ=; b=LkOk3ZLC2qEFr9CXGQEZKAwE0gQ07HQtW6b9/PMGdFwkoAnVZ/H2QJwXjyfUng107G Xg0Kd/viaHqaDlhFTH7yH0GoAi6Kq5UHxh+VMp4wfvv8kU4Hs6rfSzqyCECClfljKvCj qkY/ldHOW4XUp8IOTiHa3MFlxli+F/bRe1KAVx0wWn1L3OUMohyYs1fbiVl/5N2WKc3i l+sXJUd6zwzPBqkbCiq02MU3qTfrUtWVfbhsRzQsiOqKBl+PUFP9V/bTxs69VMQXb7UZ 1m+iAXLkxJEO4i98daAGPCIEA44h2+Xm8gvbHUB2mwRclFPaXWsIue4MokKiVpSbjWkG IgnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843311; x=1726448111; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=o5YbG30AsPN7oCSVvo9hkRXZvSwqET1I+AB6ltcLJjQ=; b=t7h7DW+sS7jhasvB90ocytyeqSFE4e46No4gMKUh70k7wtEJVrBHmnC8tAEVYjQbnv Ms61ySXAVYgcfKe1e7OuCqe1E9e9zmt33VazwiNhYAWM9B5wHCl+be83Q9HM/nSAqJpZ 4vvSMHQLwW3uJSwmTKHNZ6KTToq869hI+6M9Ft+7nuwtrWQQBuGehCRsN0fJvllh9ivT GjxAQD7GEVuTvIdF8A1hvD5fqwbbfTIvomv126icIHF+7ynte2/pGlI9xpEcov0L8i0H a0DxsPKiXhVzKVURM8JrkPXFKmpAxkbkhjYjQzSgkOLRbj16Wej36oA0Lht3rMYeNy9J qEDQ== X-Gm-Message-State: AOJu0YxS5QE+03MRcAFhhdAU13xIeeQUADYSLpL179tm895wZ1IDL4fV 4FZ8/3itfcX5r/0XAVmSzuN1du10II/mXpnnsVhU4oGm1Fxn85Iw7Ob7fQ== X-Received: by 2002:a5d:6892:0:b0:374:c79b:ca5f with SMTP id ffacd0b85a97d-37892703f43mr3482945f8f.46.1725843310995; Sun, 08 Sep 2024 17:55:10 -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.10 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:10 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHVU2O.3USJ7FT28MFOI@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Sun, 8 Sep 2024 20:13:45 +0200 Subject: [FFmpeg-devel] [PATCH 11/60] lavfi/vf_ssim: 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: s5scJaS0nWRL |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
Quoting Marvin Scholz (2024-09-08 20:13:45) > 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_ssim.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) LGTM
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index 97bffcf70c..54e28d43bd 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -414,10 +414,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; } }