[FFmpeg-cvslog] ffmpeg_demux: don't print input error for AVERROR_EXIT

Gyan Doshi git at videolan.org
Thu Jan 30 12:43:26 EET 2025


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Mon Jan 27 11:03:28 2025 +0530| [1911a6ec26236588f72413c2b9bfe54a97a6a145] | committer: Gyan Doshi

ffmpeg_demux: don't print input error for AVERROR_EXIT

This error code is for expected exits, like after listing options for a
device.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1911a6ec26236588f72413c2b9bfe54a97a6a145
---

 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;



More information about the ffmpeg-cvslog mailing list