From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 98FCB4C154 for <ffmpegdev@gitmailbox.com>; Tue, 1 Apr 2025 23:46:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 67445687DAF; Wed, 2 Apr 2025 02:45:25 +0300 (EEST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B4D3E687DA5 for <ffmpeg-devel@ffmpeg.org>; Wed, 2 Apr 2025 02:45:23 +0300 (EEST) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-39c266c2dd5so754274f8f.3 for <ffmpeg-devel@ffmpeg.org>; Tue, 01 Apr 2025 16:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743551123; x=1744155923; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uxo0l9NMHtoms6Fu4hv6RV3V36jM6HSEV9Qm+CqIOlY=; b=k1aqAQWlQp46NOqjOy5OsdZTbj0jlDHZ2ctj0YImTHYW2Fy7J+OivwuRXR6D/JPJsU GfCakoyOy6GziYpaPte5jHFySuVbt5vklBTPtP9ZOfRdNDVnxDM/HgnFzxKOl1R4vx0+ v6VtoNg70fx469JRNiS/5nZDRVeLyvtm269ulkH4vJZ+YcE1vEbMwlorE97mJorRzkCp sOwkvbw72o1fLV6MgcOkK1lQXDbgJ8JieHBKQhE3Zv6e09ay7Cywf+6b+J73CMxHXFx6 mNvWQ6klIcteCql3S0qctDhPJQPjHdMMh6sbs7pR4akHihem6QLF/wniliQWnURGQuoH SyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743551123; x=1744155923; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uxo0l9NMHtoms6Fu4hv6RV3V36jM6HSEV9Qm+CqIOlY=; b=lZE1pHkq90bGWrvqwzqhZGITVTa1OjA9ZfmN0/hp8wGF4AG6kGL13IEDVPjfa/wYhV 3PD9HMe4xPN82CfQAJd/OGL4AX9SV/OhcuRoRVFpTYppB/LjYCd1dsUe9qpWBY4r8mpN Ev0L2tKOUC8Du9+ApjXe1nkc8MLpFUc1VOsjxYc5vXnJ5cBFUccjMsDOrAomy9s1Ed4A kqo3o1noB/Uy2ZctUUfSY7ZTWGQnUrtVbh+LnHP3i3e11KyePhRJKxmE1Tfzv8FRuUQU 20D3aGoWcmpvZwu5D1A6xFhE5AEOA19CrtslTuLzqZpXcpAJwJX9kFqvYwtvGFku3MX8 9pLg== X-Gm-Message-State: AOJu0Yw69kOt+BV7XQlv4Xl96vUg1ewN+df5bZxA7HNF0kwFimyIwp9R TZ0RY5WoTVfIYTEn8tlEXOhuCHQ7ID6c3uJVGQQ326M+HfDekW2zcwk3Sw== X-Gm-Gg: ASbGnctk6/3edvdkpZCeae/9bFcV8sbxzGwK05PoC52PjYoi9YklUZ4qaqUczn7I+Cn 92BxqMk5WFeU/1jeO/v/7NCXj3njmTmP17RBW8GEH/u0Wbo5JyVWYyUUpByfITIg2g2w7dVu0iH GwDuQ2UFiuH7eEr519CASXRHU3RoEjFuHzO85BUOVxI3Hhmkv0KwcPVkrKsXL8TqiWENoEV4wZv bRin+Xf4AlYzT2Hs/vARV8YD3Kqe/Yf2n6Mza8qUFcQKDehykYPZWTTODLwcuFzt2Wc1JDh/lF4 zLQKYarfKZl4gHCt5ER2W1MR7AvUy7SKWoNPfU8mHuoYSTzebr4j6jZ+zZRlHZn+l+LNLTysLH4 5peJ/f9v8I7EzYeaSfBySOyDq9HWOZBk3ifiY3Ji5eojOeZbKBdFR1Ys+N5z/qQ== X-Google-Smtp-Source: AGHT+IGCKg5l7OFrNGMf5ztBqS/fN96I1TBlRWV6SKefB5Ej/+n7NOeJMUy3Gf8V5HtlTs84JyGZ+w== X-Received: by 2002:a5d:59ae:0:b0:38d:e584:81ea with SMTP id ffacd0b85a97d-39c1211abe5mr12664461f8f.45.1743551122851; Tue, 01 Apr 2025 16:45:22 -0700 (PDT) Received: from ArmedBeast.fritz.box (p200300cccf1b51005576e6fda25978ed.dip0.t-ipconnect.de. [2003:cc:cf1b:5100:5576:e6fd:a259:78ed]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c0b7a420bsm15128993f8f.82.2025.04.01.16.45.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Apr 2025 16:45:21 -0700 (PDT) From: Marvin Scholz <epirat07@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Apr 2025 01:43:35 +0200 Message-Id: <20250401234336.35650-6-epirat07@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250401234336.35650-1-epirat07@gmail.com> References: <20250401234336.35650-1-epirat07@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/7] tools/sidxindex: use av_err2str 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> Cc: Marvin Scholz <epirat07@gmail.com> 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> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250401234336.35650-6-epirat07@gmail.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> There is no need to explicitly specify the buffer, as it is only ever passed to fprintf, so av_err2str can be used. --- tools/sidxindex.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/sidxindex.c b/tools/sidxindex.c index 3e43d95e02..96b1fce8c4 100644 --- a/tools/sidxindex.c +++ b/tools/sidxindex.c @@ -119,20 +119,18 @@ static int handle_file(struct Tracks *tracks, const char *file) { AVFormatContext *ctx = NULL; int err = 0, i, orig_tracks = tracks->nb_tracks; - char errbuf[50], *ptr; + char *ptr; struct Track *track; err = avformat_open_input(&ctx, file, NULL, NULL); if (err < 0) { - av_strerror(err, errbuf, sizeof(errbuf)); - fprintf(stderr, "Unable to open %s: %s\n", file, errbuf); + fprintf(stderr, "Unable to open %s: %s\n", file, av_err2str(err)); return 1; } err = avformat_find_stream_info(ctx, NULL); if (err < 0) { - av_strerror(err, errbuf, sizeof(errbuf)); - fprintf(stderr, "Unable to identify %s: %s\n", file, errbuf); + fprintf(stderr, "Unable to identify %s: %s\n", file, av_err2str(err)); goto fail; } -- 2.39.5 (Apple Git-154) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".