aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-06 12:47:34 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-07 18:51:37 +0200
commit3e886e7307502bc6e1a8496ec25eca94b04825c5 (patch)
treed40c90eae9c9856a2fdc97cc4b0f21870dfb967b /ffmpeg_opt.c
parent4aeb7a88ec69aff6490e7f94f5987f7525b7eab7 (diff)
downloadffmpeg-3e886e7307502bc6e1a8496ec25eca94b04825c5.tar.gz
ffmpeg_opt: Suggest to use "file:..." if a protocol was not found.
Fixes Debian bug 785690.
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 2ea09cf45e..0c0d3a6b2c 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -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);
if (err < 0) {
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);
}
if (scan_all_pmts_set)