Message ID | D41CE2FHVLL4.E6TW5TO33G3T@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1457083vqu; Mon, 9 Sep 2024 00:14:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUWHZrrCuQ4cf47joWoXA+ac9jFWlLwd/cNhTl7SORw2bHxZrxkqzhBt9sxQD3prdHJLJMdzGAvJXaRySfeS1oi@gmail.com X-Google-Smtp-Source: AGHT+IFS92ncoDW3RVRvT3QmnzYBmuoymkf6S7fsaj0EJHyIntxD2FBFTUol7f7IIMC++wbPa/B6 X-Received: by 2002:a05:6512:2210:b0:530:b773:b4ce with SMTP id 2adb3069b0e04-536587ced63mr9737281e87.33.1725866051686; Mon, 09 Sep 2024 00:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725866051; cv=none; d=google.com; s=arc-20240605; b=MSX3WpTPDftRUKwT7qyP/RN0pRBYi9O/YrcWJZ+madL+IrJqB3N7KMfDVWcVYtiYD9 AgG/ZbCnhYEVnHbOSAa+ViyCkNYnrNJaBXcpBu9WYxT7+Wu+lQZcthZ/DFFEhHXajR8w 4JrhplbzZFjQY7OzT6haktZiu48zMJm7rNBjAFa8LjWrfsnYk7afAlb5DYg7H73oY08t 83bpp8qLcpMFEz3o8KFo6lPjJSgQXH0nga4g69G9tp4Umr8PJw97tpMQfK832QgW6LNZ hPQwi6ezdLD/p04fA2pXCqB/SfIyXuQNOHLQVHUlf2GRtAsNxlrnxzm9cKk2tDkiIGkV yolA== 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=YARRNsd6sv5vfKLKteDPYBthne2cIrNR/IQVmHwXRTU=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=CL+tL8k9KgcoyQOoCt9mOg6AJY8dhVpKL61BEUoxnpHTPtUfE/2lkV864Y9ssZdYA2 +MZhH0UtlET1WJYbFU656J9FC2Jl44Wbgqn2xyn2SGmYHlnNcli3Aj5fM6q+mFTjWayT c9ivAP7bU/KVQSJxvn1w+UVnYVomwUaf8z53yw0Sl1YemTRFnvjFQuyuUOPsJDMFqcg6 FeKZIlohi9jC9AK7QXX7l54vORou8jpOEWjbh06j6aJAOOS6RUOS9676wknBr3VwT+fJ sZ1BaCU70VUaYDnAWtHg9Rb7J78UhOTTOj7VaA9pXJnEZZw1/2F4KhvuPtj602LOfkC6 Os/Q==; 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=VdVKB0Oo; 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-5365f8c166fsi1354864e87.295.2024.09.09.00.14.11; Mon, 09 Sep 2024 00:14:11 -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=VdVKB0Oo; 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 C5ACC68DBB8; Mon, 9 Sep 2024 03:55:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E4E5C68DA58 for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:08 +0300 (EEST) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42c7b5b2d01so43757985e9.3 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843308; x=1726448108; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=pZwtDHj+DBMjwUG3hIOoPFF191yh/AYjIBenSKuS7BU=; b=VdVKB0OotEqkc4AspHQkQPH253JGs98b3JOv9ZZUnNUdnUe96eMMTrZuoX5HQdZuvp 21kVr6Ja6CwxkcFTd97Xug3pFfd74hJ5EYN8k2/AaBLAfAxdkV/A0B5vOIp3IGXh/G8s 0eSFvP5MN7YXYTcKNhHJjXDjJAGPHKDmPIFOxMLES+WEj3EY2uJBcXShWmP40h9hr+yU rWLeTE7kvTuTNLdYCFfVTKGfVQBNKAvggBcAZGUsWso7ynvXo2di0QuFAOkZLCDixSo6 wRTgRxmBg6QhW31VqRiL8d5m4bxyhh52cKDlEhjO4I6FvmZs6xXxALDUN5rpe4ufkhI2 OAyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843308; x=1726448108; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=pZwtDHj+DBMjwUG3hIOoPFF191yh/AYjIBenSKuS7BU=; b=EAiojsB+34A0hBVRweSWMRre3iWMPvrWw4pZuq0f3Jcf+rF1Dj1grwI9IMheETXxM1 TIce6OpuD8Vc/4vxhQV5iEwaODshX2nSyrc52FVYJG6Gxbur15/71hMkQq0SSfWlKQfb a2HqA0btZX3e9V1b7WCI0iVda6fM14oU825ShIJcf6iZe+xmEBfs7M5UAZ8QlZcGjFt/ K0HpWDVCaU604gjAZ1vcw01yKDCefetRFGBSB94np6s8Qo5sMK4+SSWuLAKfiFLoLNz3 yeYqrVDX3dQS8nuGB49Nafg5U7ikYhJAVA9GwY8603OhOCl0dRrIOCTgh6GXhid3jPva /gzw== X-Gm-Message-State: AOJu0Yw/UaisGrb82S8eNc72ae8aBay9Mkw8DcuMGnA94J7Ms1mVA8Ds IMyrF3YlWSnFP+66QXYp/VcQrh0ybllqPrmL8xcRcsWdHERqPq7UWrhHZA== X-Received: by 2002:a05:600c:4918:b0:42c:a387:6a6f with SMTP id 5b1f17b1804b1-42ca3876ae9mr71066805e9.20.1725843308239; Sun, 08 Sep 2024 17:55:08 -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.07 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:07 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHVLL4.E6TW5TO33G3T@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Sun, 8 Sep 2024 20:02:34 +0200 Subject: [FFmpeg-devel] [PATCH 08/60] lavfi/vf_vmafmotion: 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: qzNo4GC/sG6W |
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:02:34) > 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_vmafmotion.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Possibly ok
diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c index 7bc73416e8..f9315e56b6 100644 --- a/libavfilter/vf_vmafmotion.c +++ b/libavfilter/vf_vmafmotion.c @@ -318,10 +318,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; } }