Mercurial > libavcodec.hg
changeset 4747:66aff3b71861 libavcodec
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
author | gpoirier |
---|---|
date | Fri, 30 Mar 2007 09:05:52 +0000 |
parents | 4aedb3b6fa4e |
children | c6a2b573f259 |
files | opt.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/opt.c Fri Mar 30 06:33:15 2007 +0000 +++ b/opt.c Fri Mar 30 09:05:52 2007 +0000 @@ -139,6 +139,8 @@ 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);