[FFmpeg-cvslog] ffmpeg_opt: Suggest to use "file:..." if a protocol was not found.
Carl Eugen Hoyos
git at videolan.org
Wed Sep 7 19:51:43 EEST 2016
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Sep 6 12:47:34 2016 +0200| [3e886e7307502bc6e1a8496ec25eca94b04825c5] | committer: Carl Eugen Hoyos
ffmpeg_opt: Suggest to use "file:..." if a protocol was not found.
Fixes Debian bug 785690.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e886e7307502bc6e1a8496ec25eca94b04825c5
---
ffmpeg_opt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 2ea09cf..0c0d3a6 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)
More information about the ffmpeg-cvslog
mailing list