Commit 449ea2e0 authored by stefano's avatar stefano

Make ffmpeg print a message and abort if the name of the format

provided with -f was unknown.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22140 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cb4f1a15
......@@ -2852,7 +2852,10 @@ static void opt_input_file(const char *filename)
int64_t timestamp;
if (last_asked_format) {
file_iformat = av_find_input_format(last_asked_format);
if (!(file_iformat = av_find_input_format(last_asked_format))) {
fprintf(stderr, "Unknown input format: '%s'\n", last_asked_format);
av_exit(1);
}
last_asked_format = NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment