mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-15 05:11:37 +08:00
fftools/ffmpeg: replace print_error() by more meaningful messages
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user