You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg_opt: Suggest to use "file:..." if a protocol was not found.
Fixes Debian bug 785690.
This commit is contained in:
@@ -982,6 +982,8 @@ static int open_input_file(OptionsContext *o, const char *filename)
|
|||||||
err = avformat_open_input(&ic, filename, file_iformat, &o->g->format_opts);
|
err = avformat_open_input(&ic, filename, file_iformat, &o->g->format_opts);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
print_error(filename, err);
|
print_error(filename, err);
|
||||||
|
if (err == AVERROR_PROTOCOL_NOT_FOUND)
|
||||||
|
av_log(NULL, AV_LOG_ERROR, "Did you mean file:%s?\n", filename);
|
||||||
exit_program(1);
|
exit_program(1);
|
||||||
}
|
}
|
||||||
if (scan_all_pmts_set)
|
if (scan_all_pmts_set)
|
||||||
|
Reference in New Issue
Block a user