From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id B95DF49EFC for ; Wed, 29 Jan 2025 04:54:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A884A68BBAD; Wed, 29 Jan 2025 06:54:21 +0200 (EET) Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 31FDD68BAE8 for ; Wed, 29 Jan 2025 06:54:14 +0200 (EET) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4YjVDh27h0z9snL for ; Wed, 29 Jan 2025 05:54:12 +0100 (CET) Message-ID: <599cf1f3-0f03-454d-b932-deb9a1f9de75@gyani.pro> Date: Wed, 29 Jan 2025 10:24:09 +0530 MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org References: <20250127051825.572-1-ffmpeg@gyani.pro> Content-Language: en-US From: Gyan Doshi In-Reply-To: <20250127051825.572-1-ffmpeg@gyani.pro> Subject: Re: [FFmpeg-devel] [PATCH] ffmpeg_demux: don't print input error for AVERROR_EXIT 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 2025-01-27 10:48 am, Gyan Doshi wrote: > This error code is for expected exits, like after listing options for a > device. Plan to push tomorrow. Regards, Gyan > --- > fftools/ffmpeg_demux.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c > index 0fd095d8ae..5ff75eed1a 100644 > --- a/fftools/ffmpeg_demux.c > +++ b/fftools/ffmpeg_demux.c > @@ -1726,8 +1726,9 @@ int ifile_open(const OptionsContext *o, const char *filename, Scheduler *sch) > /* open the input file with generic avformat function */ > err = avformat_open_input(&ic, filename, file_iformat, &o->g->format_opts); > if (err < 0) { > - av_log(d, AV_LOG_ERROR, > - "Error opening input: %s\n", av_err2str(err)); > + if (err != AVERROR_EXIT) > + av_log(d, AV_LOG_ERROR, > + "Error opening input: %s\n", av_err2str(err)); > if (err == AVERROR_PROTOCOL_NOT_FOUND) > av_log(d, AV_LOG_ERROR, "Did you mean file:%s?\n", filename); > return err; _______________________________________________ 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".