OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb030bd
)
Make opt_default() print an error message and exit if the option
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Mon, 22 Feb 2010 12:28:51 +0000
(12:28 +0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Mon, 22 Feb 2010 12:28:51 +0000
(12:28 +0000)
supplied is not recognized.
Originally committed as revision 21960 to svn://svn.ffmpeg.org/ffmpeg/trunk
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
b21380e
..
90c165e
100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-214,8
+214,10
@@
int opt_default(const char *opt, const char *arg){
fprintf(stderr, "Invalid value '%s' for option '%s'\n", arg, opt);
exit(1);
}
- if(!o)
- return -1;
+ if (!o) {
+ fprintf(stderr, "Unrecognized option '%s'\n", opt);
+ exit(1);
+ }
// av_log(NULL, AV_LOG_ERROR, "%s:%s: %f 0x%0X\n", opt, arg, av_get_double(avcodec_opts, opt, NULL), (int)av_get_int(avcodec_opts, opt, NULL));