fftools/ffmpeg: replace print_error() by more meaningful messages

This commit is contained in:
Anton Khirnov
2023-05-07 18:29:09 +02:00
parent fd980b2615
commit a1002bc39c
3 changed files with 7 additions and 5 deletions

View File

@@ -1405,7 +1405,8 @@ int ifile_open(const OptionsContext *o, const char *filename)
/* open the input file with generic avformat function */
err = avformat_open_input(&ic, filename, file_iformat, &o->g->format_opts);
if (err < 0) {
print_error(filename, err);
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);
exit_program(1);