mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Make ffmpeg print a message and abort if the name of the format
provided with -f was unknown. Originally committed as revision 22140 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
07a70b3825
commit
8c8bf9ecfc
5
ffmpeg.c
5
ffmpeg.c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user