[Ffmpeg-cvslog] r8552 - trunk/libavcodec/opt.c

gpoirier subversion
Fri Mar 30 11:05:52 CEST 2007


Author: gpoirier
Date: Fri Mar 30 11:05:52 2007
New Revision: 8552

Modified:
   trunk/libavcodec/opt.c

Log:
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


Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c	(original)
+++ trunk/libavcodec/opt.c	Fri Mar 30 11:05:52 2007
@@ -139,6 +139,8 @@ const AVOption *av_set_string(void *obj,
                 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);




More information about the ffmpeg-cvslog mailing list