diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2007-03-30 09:05:52 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-03-30 09:05:52 +0000 |
commit | 226d6947bc6e6592eabbcb7b401bf164be5bfe6e (patch) | |
tree | c94cd94cacd9724861b6d209e89eabca8571dbd4 | |
parent | 2c48a21c4fb1a591321181bc84207534f506ea9d (diff) | |
download | ffmpeg-226d6947bc6e6592eabbcb7b401bf164be5bfe6e.tar.gz |
add 'all' and 'none' options for partitions config
Patch by Limin Wang % lance P lmwang A gmail P com %
Original thread:
date: Mar 24, 2007 3:53 PM
subject: [Ffmpeg-devel] [PATCH] add all and none options for partitions config
Originally committed as revision 8552 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/opt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c index ed7aaa0f86..cfff0c19d9 100644 --- a/libavcodec/opt.c +++ b/libavcodec/opt.c @@ -139,6 +139,8 @@ const AVOption *av_set_string(void *obj, const char *name, const char *val){ else if(!strcmp(buf, "default")) d= o->default_val; else if(!strcmp(buf, "max" )) d= o->max; else if(!strcmp(buf, "min" )) d= o->min; + else if(!strcmp(buf, "none" )) d= 0; + else if(!strcmp(buf, "all" )) d= ~0; else { if (!error) av_log(NULL, AV_LOG_ERROR, "Unable to parse option value \"%s\": %s\n", val, error); |