Message ID | D41CE2FHWHZS.2PBD15XTC4Z1W@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1363755vqu; Sun, 8 Sep 2024 18:19:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXDYjZLcMKNhhHA4DTsZZ/mHQw6wGfZEBm40SL77xazbiTUSIZMWfEpGUzZrr+gRH9ZOKGL+RGVjXNCNGeWGvBK@gmail.com X-Google-Smtp-Source: AGHT+IFvBKOom1ZYFLRp3A98PJUaP9xHHx2PJZyxf6APSjD6FWOS/hNc+oxHZFRBsyDWk01AgQqw X-Received: by 2002:a05:6512:1191:b0:536:5515:e9bc with SMTP id 2adb3069b0e04-536587fc7a7mr5354854e87.46.1725844752957; Sun, 08 Sep 2024 18:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725844752; cv=none; d=google.com; s=arc-20240605; b=Xhaws6mmSQ42J7w/XDaiQ90Ga376gbfYGpLls4zhU3B7JRifKhoWv5owbgGcGViSol sXcCmBK4uW7Qso114MFqclw/HnpL90/Alo1UzAeE1M7SYgWr2GrykPyjF9C9VwS+DSUv 6bDoAaz0CtIQPRBCzkkAtZklv8f0FpHlpkeJsxAcK50qKzBzlc+k/v5bN05p0w6sACdF wLA8u038PliG5xwINmIlU4/21mfwjttzQDScSwfJU95Dwi7vg/S9SwsTUVGCdKqGydVO Vr+AJAnEnS7Scpe444Gejx5jjN2kMCav925GREaL1JIdh/jXHZeClz4zoz4HDOCiNgZ4 3Pwg== 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=ju4K05sghzio7RPvSc/l0ahJ0+UCXsRO5L4n5/FBO64=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=c7jZvjPkTl0iI+c++o/jGPC8cD06VgTXfKLIaIckqzAtD8ehBwTowYIQQpFWKiS11U V9xmDvQeog33awjwNEHblbevTdYbH7YCNSMx6aTQIG+isyahvT4RsGrXm9eNzo8C3Dyz lKpuwvdLhKXX7zSkhaEq7Ny2DWOIY24wp7Fe7/0nqhTz+mzLXzY6jKzYj092cM/IIv0M Tk8dhgn8lxW9NWmvjx8eyGVKJRiMtKc0eX4xRbZwCLDms9UlvS8tG3Ru2ASXF6MsxDQP anXDa5yh627J1ztFVTLK4MQMrzCMO6gABjdPg0E+1Oyidn2tLugtrUu+jBxonTb8wkRY gQFA==; 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=H+nvyTRX; 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-5365f8f5bb4si1336828e87.393.2024.09.08.18.19.12; Sun, 08 Sep 2024 18:19:12 -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=H+nvyTRX; 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 51E1868DC7A; Mon, 9 Sep 2024 03:55:32 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D723A68DB8A for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:19 +0300 (EEST) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-42c79deb7c4so31989585e9.3 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843319; x=1726448119; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=qP1XNRaR0+ZmRZoCVHHvmezxMWAylW+jeTSq2C1Squw=; b=H+nvyTRXIhD3xmfTIbhE5wDSFG0sob9Sk7AYF7luDGh2CL+JWPiiBNl5CyDZXhx42K 1jTTYHZDA3/62FTsWHhVWUgOOiA5LtfKPUddc1cOdjzc/QJUYfEPbAfFpfkPcznQgER1 GpPsWKiCtG6pvm4ulf3WncA1KtgWxlFBwUfQ5vINBKTfIiPYuyRoG7EkzbO0+ig4NGql 4vkb66LEuuxcIEQuOP2hpnSPAuEVYgcjy8HLTygW52jdg9sfi/CteMP5oSWorWw708a6 w038IPKbznYd8TE/exo+lBKtw1M0pFoqFHZQ5Xt1ZT2L/d5Rzh9qRUV13CBtB2ZCWFLm 2zWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843319; x=1726448119; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=qP1XNRaR0+ZmRZoCVHHvmezxMWAylW+jeTSq2C1Squw=; b=q81JYkzRkWTg5iDmkofheDVsxDajJd8F112MeoCDIC5dgbibqbKJQMJRKq319+f3ZO /3+aQaAiss9s5uCjmRpsKCTGNf84ETCQyF6PDs5z1AGN22aOE+hXal4herc6vhe92+QJ IXHXi6saWUn9h8pbQplO604eLzUls+YIeb8ZmUsTfP/AFlFFoErKqxBX9B5z7o8D8pYs 2kVtjBT5IWhuhLsxN/2n/85xAKKsI6KU6RR/iJU5FgQa9btZHrcK45CLj2H1YIatTdVE v+copdi184s106dapI3T1L9TBTpkMDYgLg31o7oe6g1Th6WpQLs/ARht+4vLbjdw8u+L yJVQ== X-Gm-Message-State: AOJu0YxEbvD8rAfjqssj57xUhvO1ig0n4tBG3RnBkxik3SQId7iKnZnx /qflywAO5mKcyS7HLFC+dnOC0z5ZqqcO7h4d0LsDz4XeJLRKpaBGWoOgMg== X-Received: by 2002:a7b:c858:0:b0:42c:af06:71b with SMTP id 5b1f17b1804b1-42caf060978mr33980965e9.28.1725843319043; Sun, 08 Sep 2024 17:55:19 -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.18 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:18 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHWHZS.2PBD15XTC4Z1W@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Sun, 8 Sep 2024 21:45:24 +0200 Subject: [FFmpeg-devel] [PATCH 19/60] avdevice/jack: 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: pjHsw6yUjbqd |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
Quoting Marvin Scholz (2024-09-08 21:45:24) > No need to explicitly specify the buffer here as it is only > ever passed to av_log, so av_err2str can be used. > --- > libavdevice/jack.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) LGTM
diff --git a/libavdevice/jack.c b/libavdevice/jack.c index d52bb06822..bb06971fe6 100644 --- a/libavdevice/jack.c +++ b/libavdevice/jack.c @@ -291,11 +291,9 @@ static int audio_read_packet(AVFormatContext *context, AVPacket *pkt) av_log(context, AV_LOG_ERROR, "Input error: timed out when waiting for JACK process callback output\n"); } else { - char errbuf[128]; int ret = AVERROR(errno); - av_strerror(ret, errbuf, sizeof(errbuf)); av_log(context, AV_LOG_ERROR, "Error while waiting for audio packet: %s\n", - errbuf); + av_err2str(ret)); } if (!self->client) av_log(context, AV_LOG_ERROR, "Input error: JACK server is gone\n");