aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-02 00:01:16 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-02 00:01:16 +0000
commit8c8bf9ecfcef099724c6fbe7822f8536e3e9ddb0 (patch)
tree0857edfeee0076f32f1c78b9dde7ffd24bd3cc7d /ffmpeg.c
parent07a70b3825b10e314fbf2ffa45d162b7824a1ca4 (diff)
downloadffmpeg-8c8bf9ecfcef099724c6fbe7822f8536e3e9ddb0.tar.gz
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3f88089817..4220c278cc 100644
--- 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;
}