projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a70b3
)
Make ffmpeg print a message and abort if the name of the format
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Tue, 2 Mar 2010 00:01:16 +0000
(
00:01
+0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Tue, 2 Mar 2010 00:01:16 +0000
(
00:01
+0000)
provided with -f was unknown.
Originally committed as revision 22140 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
3f88089
..
4220c27
100644
(file)
--- a/
ffmpeg.c
+++ b/
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;
}