From patchwork Sun Sep 8 17:46:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Scholz X-Patchwork-Id: 51402 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1356534vqu; Sun, 8 Sep 2024 17:55:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUlfQuCzB/dzZD8EVx5K+fK/qgiY+ZGt5+ePuACbtSNkPrd6156Nx6fx6AIv8APk+MSHuA+k4V2NSafJuHRFxxE@gmail.com X-Google-Smtp-Source: AGHT+IFp/pLkeV5cdFhqqfZ9Kh0HBcVpxKAV50StZpMTk/7b9UCIt0DnySZo3d3x3A/aWRVixxgm X-Received: by 2002:a05:6512:2243:b0:530:b78c:445c with SMTP id 2adb3069b0e04-5365882669fmr3085937e87.8.1725843336736; Sun, 08 Sep 2024 17:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725843336; cv=none; d=google.com; s=arc-20240605; b=Cy45A2/iaMnq3KHPt/5t1KUUikWnMkaC2xeb03A+tj4VpnSN6F9EORnhDxyGz/fJ8X 8Ig4nOVhwyCApPDaXziMXDwbGaJzC7h5LrGPKtgmVsf5zxD8Ar/EG7pHUa34xMpcVl5n /OBFJcRXiCqV1g6xekG+NryTt5VM8epVxC1jjVY0gxg3d0nnUEnLYt7iFcDT3X5SABPT dh77Q9poBQfg6dljABmaJSr/OqGCUd/uxqjfn5oAFve0KXi9AK452C9+W4JXfUMYSc9R DvylCbo+glc31WuXn1wmj0l98zwrLwu93yAxshja134huBXBbz0iSbfP1yRcx0XIwXQe /7cQ== 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=FWbKKqxR2B/IuDQbGG7NR0iD3M+jLTCbZfW+VdbQqXY=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=c3xLMQYLY1R6ZQY8Y/oxcB0XoRKS+/G03CezmXxLS4BqC6IHDB8/SiJAy6AaqWX+fm CXToAyy6s3WyrwYzPBXbw/53NAPz45LRwIu+i05UDg5UBIy9INgzDwq+HKA9dZn6fn0M JnLyvbiS1bSwKD96TxeZpZGaM21exwTcWUujliOj4C0kg5Hngwz6HDbCzcU63znqnEsr 5GXofFBJEIuDvM0nW6Dkhwp+7jZrWimS4MZBalap486GskPT5os6xyIiiDldfU+YjWI1 u9b5xQouDPLfXYvzD/bUMmsbNzFq1KyeBOipQulE4xZdqETcXI3y2BZl/C446WUs4WVm wo7A==; 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=DwRbzkfc; 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 ESMTP id 2adb3069b0e04-5365f8c1603si1195287e87.214.2024.09.08.17.55.36; Sun, 08 Sep 2024 17:55:36 -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=DwRbzkfc; 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 BDF8268DA78; Mon, 9 Sep 2024 03:55:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7C0FA68D941 for ; Mon, 9 Sep 2024 03:55:04 +0300 (EEST) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-374ca65cafdso2322214f8f.2 for ; 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=yWWRabbGVi/6/50N8JgmTP3iCfSWmM/NqiaP8rtFXa8=; b=DwRbzkfcqxObowO1EyEtuOong+h2KxWYALQvC7UwCZshc0tkZ2mvXZhdmLWr5C/e43 kbKlV6XyMdrLBORuPB3H0LqAEXsrb4eLHew/rxhQsI2URqGVnD1b7axZF0sry2/w38Sr hZM5mZSE1H2i30B26myuFsgMLnjt6w5RaYzxS0zWh9g2ePAfmsnSGBXowj3hwGoPTgYC WRKOpyZTsvPGEKjJ8J7mYwMsPBjUJ2+t91bZ7t87GPxD8TzaEpX31jfQAfH1qp1ohwNJ IYYIfHkKnOUAT/Y9ypioCDpSt/p9Xz84VhHtCurBZ3+LBtt44hqvqo5R1z0paa2jFMRJ BIOg== 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=yWWRabbGVi/6/50N8JgmTP3iCfSWmM/NqiaP8rtFXa8=; b=ipyK9S1OIw6OcEJ6qRdPaer0B1SYx/URPA1kBhokrYMCQFVSkKpRybKV3AA2A3rdYL CgTUVCYNcIppI3frELnpHK5yWpzoL+vj5Zw5HLama5751ZoC/cq1GQcQ4v95TUubl8fW pRGG1Ocu1mQyvy30HGMxM6ed/Pv25n4OCbbWK1GJ9DLPBq7cYLOWwsmWeEiPFUOxsqBH yrjdqCWaWMzX1xhS76PklFKWprTlQ9mzYEzSuLq/0eMx6LrpQbunx1q3zTn4BCX3RUkb s2uEQURTTAaDKGeDnWHOr5Y9k4wSLjzJkVMtSM5zGDs0uY7tLQmCgyTRCX2i+wMeIRsO sSOw== X-Gm-Message-State: AOJu0YxrhV6Xm3SatMbN6qIhUo2w7MrsMGcOB/erChu2vOw6YpP0imcS HJUPXHIJUGZiGGYoKEkFl3qM2UjwVwrq0v8h/Cb5HrTgoc0e/nDOdMDIGQ== X-Received: by 2002:a05:6000:cc:b0:374:c269:df79 with SMTP id ffacd0b85a97d-378949f7e28mr3438268f8f.22.1725843303024; 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.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:02 -0700 (PDT) In-Reply-To: Message-Id: To: From: "Marvin Scholz" Date: Sun, 8 Sep 2024 19:46:13 +0200 Subject: [FFmpeg-devel] [PATCH 03/60] fftools/opt_common: use av_err2str instead of strerror 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: pIsJC2F6MTtC The strerror function must not be used here, as the error is a AVERROR errno, which depending on the platform no longer corresponds to the actual errno that can be handled by strerror. --- fftools/opt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/opt_common.c b/fftools/opt_common.c index 059f7a53d2..dc5fc7b96d 100644 --- a/fftools/opt_common.c +++ b/fftools/opt_common.c @@ -1207,7 +1207,7 @@ int init_report(const char *env, FILE **file) if (!report_file) { int err = AVERROR(errno); av_log(NULL, AV_LOG_ERROR, "Failed to open report \"%s\": %s\n", - filename.str, strerror(errno)); + filename.str, av_err2str(errno)); return err; } av_log_set_callback(log_callback_report);