Message ID | D41CE2FHVAS8.300OVAZA5XCVN@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1356567vqu; Sun, 8 Sep 2024 17:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUgrE5UVxVfYqT2Z2Ne/P1KTW6RJ2nXnmfnzXt1poqVUOhtQ9IEa9RgkW6j9rOrcZmeje16dfpGU5m7zsX7zQPu@gmail.com X-Google-Smtp-Source: AGHT+IEFvB+Sbi3jp3Rrk+7B8bqmmvvT7YDbZSTzPcJdmt74TPyp6V+psf+6nhsYQrVJw6BzxP92 X-Received: by 2002:a05:6512:33d0:b0:52e:934f:bda5 with SMTP id 2adb3069b0e04-536587b0670mr6160664e87.21.1725843347868; Sun, 08 Sep 2024 17:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725843347; cv=none; d=google.com; s=arc-20240605; b=Dv38SuA/C8g/DnHJy3KX9flnS5jbnB5Ffhq4NLvl25r3s8iZwXvlbVaYFM491Rmd47 hGALkG5DMbRaCexUN2j8ZWporVOHQqaqvKjUocKulh5Ku8lTVd2ttSLyi0EdB9qgrkrn hsttuJ1czvuCY86H6DPZ/VcKyEA3o0Swd5npduaT08G2g4I9QNXQX5lS1wHhu9QnET7K ux0UrOrN+nTnJz1sGk5pMWALta1t+HHkALJrKHkF0XyZy6sHBurtTChNsZ9syz8jtpCk 79veg6dH+f7P1LG4SrXRtFsF1CWccNsv8bvF/zLJlW8luv+8WEoEKsmxlt9GojbWknZQ GsuA== 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=Kc6SFGE2x17BaT+DYISmiwh7YBxMl0uMatKH/YfJOHI=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=YU+H6B9GVoSMdbPbNvNfqnxE+UFy/m4YLTAJKbQE8scwK/7yjMaXkIVKZ6Be3bGYj1 NNsKdm/6ftpBTnSNPTJzGah1921PvVYt42qzE48waed9/icSnP0TG2FmRRYl7OnXDNfM 4llczy/PBG7vcmLVOhLZymLrK7lXCKFf2IsvhV3KUkJwMGoBwaLuZSSPDRr8p86BiXPO 148TThuyiyWnnokJvvj1O16sl7q1HMKON8zOKfUw/AeLH+i/LcHJK3lcaExsucfYIknv S5uy08pgTdfqKe+IOQWAYmUG4klQhzvKw0D3stBilIFgW1FWjRL85Y0O4FR00EFtT8yy S4Zg==; 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=fzveYpsd; 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 2adb3069b0e04-5365f90b4a3si1283492e87.473.2024.09.08.17.55.47; Sun, 08 Sep 2024 17:55:47 -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=fzveYpsd; 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 E995B68DA9B; Mon, 9 Sep 2024 03:55:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9E2C868D941 for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:04 +0300 (EEST) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42c79deb7c4so31988345e9.3 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843304; x=1726448104; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=2u8TRhXqo6dVaORcpNA73TSr4J/dK29snPZYXvVZH5Y=; b=fzveYpsdjKijLQuhOlv7ES0weMfVf7oT2dF6urmqJaPCYTDSbIjKx0aIAz32BTs0+n MKdgRnSQvqyrHEka2eT1qY+LLm0SslyL/jX9DbcmX7I4K8gVEEiknQ6BqWmY9CqRcbT2 Jf0B2Bl3Pxtc2WcWsH8JOq/oq3kbOpscNSYFuv2gJlKwQWVzwJVRYAAXSBjs8mwglHUv NvL9Bg8TecSnI401SjhP8orzpZlJvcYAVSaWES4ceV3Ltf+U0pWYInhHAfu84h0M+ths sEdeSDGR61VQcsyi2kRX3U5EW8BO2M0l5vpAVFyc3zB8PJG47gIxa5I0OLiawP0Bo4rV DReg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843304; x=1726448104; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2u8TRhXqo6dVaORcpNA73TSr4J/dK29snPZYXvVZH5Y=; b=pLKss/457kG/v8pJa3SxAoYrZVY6lKT1LJt2dbV6U3OmvnFL211uSPrTyM7N/8p+kF 97hx2nWP5rTUBGL8XROlX1VclZXNHGti/71fBLKphhkjWPODAxDKeV89jxnYxifbvpPw 67ypEERpzzb69hdvGqbJyVVy83s0NYa8ZDDycJAk/X7yf773PIbcg9GZPy72QG8yaZ1B t/nY17i/apa4uhwqaVeZc7iaaY5msvdCZt9SB8thFXbKbXu8lb6Mwl1XIatip9l53wtK 6pxgR/O8McFEsLAw2OxxKbLIbUsXoiR1Y9aJhDCucKgy0kpJALNbOl1VN798YfU88lXH iMoA== X-Gm-Message-State: AOJu0Yye3TPWB6J8Ul9h9EOP/NX9iN4X+PngyeIawXqXYXjVsi/u/CjA u34WxmzO6FAkejhHKEBjeq7b4PMlkcpt5NQX0/6lFf7TYufUZaeFz7jfIQ== X-Received: by 2002:a5d:688f:0:b0:360:791c:aff2 with SMTP id ffacd0b85a97d-378896a3f79mr6503500f8f.47.1725843303924; Sun, 08 Sep 2024 17:55:03 -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.03 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:03 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHVAS8.300OVAZA5XCVN@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Sun, 8 Sep 2024 19:50:46 +0200 Subject: [FFmpeg-devel] [PATCH 04/60] lavfi/vf_ssim360: 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: SBmJBw3jlKZ7 |
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 19:50:46) > 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_ssim360.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Looks ok.
diff --git a/libavfilter/vf_ssim360.c b/libavfilter/vf_ssim360.c index 57da2f3938..68bd7b4d78 100644 --- a/libavfilter/vf_ssim360.c +++ b/libavfilter/vf_ssim360.c @@ -1320,12 +1320,9 @@ static av_cold int init(AVFilterContext *ctx) } else { s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { - char buf[128]; - err = AVERROR(errno); - 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; } }