You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
ffmpeg_demux: don't print input error for AVERROR_EXIT
This error code is for expected exits, like after listing options for a device.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user